Feature Suggestion: New Setting called LOGOUT_REDIRECT_URL

18 views
Skip to first unread message

Robert Roskam

unread,
Aug 20, 2015, 4:41:05 PM8/20/15
to Django users
Basically, the same feature set as here: https://docs.djangoproject.com/en/1.8/ref/settings/#login-redirect-url

Modified it below:

Default: '/accounts/logout'

The URL where requests are redirected after login when the contrib.auth.logout view gets no next parameter.

This setting also accepts view function names and named URL patterns which can be used to reduce configuration duplication since you don’t have to define the URL in two places (settings and URLconf).

Tim Graham

unread,
Aug 20, 2015, 5:26:13 PM8/20/15
to Django users
In fact, there is an accepted ticket which suggests the same: https://code.djangoproject.com/ticket/12405

Feel free to try your hand at a patch if you like!
Reply all
Reply to author
Forward
0 new messages