Can not understand how to change auth.templates

27 views
Skip to first unread message

Артём Мутерко

unread,
Sep 19, 2014, 3:49:59 PM9/19/14
to django...@googlegroups.com
I want to redirect user after logout to another page, not account/logout. Hoe can I do this?
I've red documentation, but can't understand where to find next_page variable

Collin Anderson

unread,
Sep 19, 2014, 7:42:57 PM9/19/14
to django...@googlegroups.com
from django.contrib.auth.views import logout

urlpatterns
= [
    url
('^/accounts/logout/', logout, {'next_page': '/'}),
]

Collin Anderson

unread,
Sep 19, 2014, 7:43:35 PM9/19/14
to django...@googlegroups.com
or send them to /accounts/logout/?next=/another/page/

Артём Мутерко

unread,
Sep 20, 2014, 7:27:16 AM9/20/14
to django...@googlegroups.com
that's doesn't work for some reason

суббота, 20 сентября 2014 г., 2:42:57 UTC+3 пользователь Collin Anderson написал:
Reply all
Reply to author
Forward
0 new messages