mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2024-12-12 09:50:45 +01:00
remove next_page parameter and show how to set LOGOUT_REDIRECT_URL in settings
This commit is contained in:
parent
b1316214c7
commit
485ac1294c
@ -124,6 +124,8 @@ HELPDESK_SHOW_CHANGE_PASSWORD = True
|
||||
HELPDESK_REDIRECT_TO_LOGIN_BY_DEFAULT = False
|
||||
LOGIN_URL = 'helpdesk:login'
|
||||
LOGIN_REDIRECT_URL = 'helpdesk:home'
|
||||
# You can also redirect to a specific page after logging out (instead of logout page)
|
||||
# LOGOUT_REDIRECT_URL = 'helpdesk:home'
|
||||
|
||||
# Database
|
||||
# - by default, we use SQLite3 for the demo, but you can also
|
||||
|
@ -215,7 +215,7 @@ urlpatterns += [
|
||||
path(
|
||||
"logout/",
|
||||
auth_views.LogoutView.as_view(
|
||||
template_name="helpdesk/registration/login.html", next_page=reverse_lazy("helpdesk:home")
|
||||
template_name="helpdesk/registration/logged_out.html"
|
||||
),
|
||||
name="logout",
|
||||
),
|
||||
|
Loading…
Reference in New Issue
Block a user