Django HttpResponseRedirect未按预期工作

Django HttpResponseRedirect未按预期工作,django,django-views,Django,Django Views,在my views.py中,我有: return HttpResponseRedirect('/account/forecast/') 我遇到的问题是正在追加响应url e、 g.来自: mysite.com/account 重定向到: mysite.com/account/account/forecast 而不是: mysite.com/account/forecast 我将Django 1.11、gunicorn和nginx与SSL一起使用。如果您执行HttpResponseRedirec

在my views.py中,我有:

return HttpResponseRedirect('/account/forecast/')
我遇到的问题是正在追加响应url

e、 g.来自: mysite.com/account

重定向到: mysite.com/account/account/forecast

而不是: mysite.com/account/forecast


我将Django 1.11、gunicorn和nginx与SSL一起使用。

如果您执行
HttpResponseRedirect('account/forecast/')
,该怎么办?