【发布时间】:2014-02-10 11:57:11
【问题描述】:
我正在尝试使用 django 的logout_then_login 函数在https://docs.djangoproject.com/en/1.5/topics/auth/default/ 描述注销后重定向到主页,但我认为我没有正确传递 url(我对 django 相当陌生)
非常感谢任何反馈。
主页网址
url(r'^$', 'myfitgames.views.home', name='home'),
退出网址
url(r'^accounts/logout/$', 'django.contrib.auth.views.logout_then_login(request,"/")', name='logout'),
【问题讨论】:
标签: python django django-urls