diff options
| author | Hugo Osvaldo Barrera <hugo@barrera.io> | 2015-08-26 03:07:06 -0300 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-02-04 10:35:37 -0500 |
| commit | dcee1dfc798bbf4602a35fb73f6acade9f5fd630 (patch) | |
| tree | 3136c20778dc4a06f399bc8af6097f3639510c83 /docs/ref | |
| parent | ad216381fcd7d3d62f1639f9998f5a965d8eaedb (diff) | |
Fixed #12405 -- Added LOGOUT_REDIRECT_URL setting.
After a user logs out via auth.views.logout(), they're redirected
to LOGOUT_REDIRECT_URL if no `next_page` argument is provided.
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/settings.txt | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/docs/ref/settings.txt b/docs/ref/settings.txt index 2101c1c7d4..ab710fffac 100644 --- a/docs/ref/settings.txt +++ b/docs/ref/settings.txt @@ -2642,6 +2642,26 @@ This setting also accepts view function names and :ref:`named URL patterns <naming-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). +.. setting:: LOGOUT_REDIRECT_URL + +``LOGOUT_REDIRECT_URL`` +----------------------- + +.. versionadded:: 1.10 + +Default: ``None`` + +The URL where requests are redirected after a user logs out using the +:func:`~django.contrib.auth.views.logout` view (if the view doesn't get a +``next_page`` argument). + +If ``None``, no redirect will be performed and the logout view will be +rendered. + +This setting also accepts view function names and :ref:`named URL patterns +<naming-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). + .. setting:: PASSWORD_RESET_TIMEOUT_DAYS ``PASSWORD_RESET_TIMEOUT_DAYS`` |
