How to add custom code to default auth.view

16 views
Skip to first unread message

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

unread,
Sep 20, 2014, 10:48:23 AM9/20/14
to django...@googlegroups.com
How to add custom code to default auth.view. For example, change REDIRECT_FIELD_NAME variable?

Collin Anderson

unread,
Sep 22, 2014, 11:34:42 AM9/22/14
to django...@googlegroups.com
from django.contrib.auth.views import logout

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

Reply all
Reply to author
Forward
0 new messages