diff --git a/docs/settings.rst b/docs/settings.rst index 762823ea..6f8a2f9d 100644 --- a/docs/settings.rst +++ b/docs/settings.rst @@ -169,7 +169,7 @@ LOGOUT_URL URL for the Django Logout action when using `USE_SESSION_AUTH`_. -**Default**: :python:`django.conf.settings.LOGOUT_URL` +**Default**: :python:`'/accounts/logout/'` .. _security-definitions-settings: diff --git a/src/drf_yasg/app_settings.py b/src/drf_yasg/app_settings.py index 6592d34b..c66b8a5b 100644 --- a/src/drf_yasg/app_settings.py +++ b/src/drf_yasg/app_settings.py @@ -40,7 +40,7 @@ }, 'SECURITY_REQUIREMENTS': None, 'LOGIN_URL': getattr(settings, 'LOGIN_URL', None), - 'LOGOUT_URL': getattr(settings, 'LOGOUT_URL', None), + 'LOGOUT_URL': '/accounts/logout/', 'SPEC_URL': None, 'VALIDATOR_URL': '', 'PERSIST_AUTH': False,