【发布时间】:2017-02-20 12:18:55
【问题描述】:
将应用程序移动到其他服务器后出现问题。
例如网址:http://example.com/path/otherpath。 我想注销:
<a href="{% url 'logout' %}">Logout</a>
发送至:http://example.com/path/otherpath/logout
urls.py 行:
url(r'^logout/$', 'logout', name='logout'),
【问题讨论】:
-
向我们展示定义了注销 url 的
urls.py文件。 -
已编辑。但是在将应用程序移动到其他服务器后就出现了问题。在它运行良好之前。
标签: python nginx django-templates django-urls django-1.6