1
我想通过使用django的登出后重定向到主页logout_then_login
函数描述在https://docs.djangoproject.com/en/1.5/topics/auth/default/但我想我没有正确地传递url(我是相当新的到Django)django登录后重定向到主页
任何反馈是非常感谢。
主页URL
url(r'^$', 'myfitgames.views.home', name='home'),
注销URL
url(r'^accounts/logout/$', 'django.contrib.auth.views.logout_then_login(request,"/")', name='logout'),
工作太棒了!我很欣赏这些反馈。 – bbrooke