forked from extern/django-helpdesk
Fix the login url by using view names in the demo settings instead of the hardcoded urls.
Also remove a duplicate url for 'login'
This commit is contained in:
parent
63790c5b1d
commit
cdfc895bce
@ -108,8 +108,8 @@ HELPDESK_SHOW_CHANGE_PASSWORD = True
|
||||
# Instead of showing the public web portal first,
|
||||
# we can instead redirect users straight to the login page.
|
||||
HELPDESK_REDIRECT_TO_LOGIN_BY_DEFAULT = False
|
||||
LOGIN_URL = '/login/'
|
||||
LOGIN_REDIRECT_URL = '/login/'
|
||||
LOGIN_URL = 'helpdesk:login'
|
||||
LOGIN_REDIRECT_URL = 'helpdesk:home'
|
||||
|
||||
# Database
|
||||
# - by default, we use SQLite3 for the demo, but you can also
|
||||
|
@ -215,10 +215,6 @@ urlpatterns += [
|
||||
url(r'^login/$',
|
||||
login.login,
|
||||
name='login'),
|
||||
|
||||
url(r'^accounts/login/$',
|
||||
login.login,
|
||||
name='login'),
|
||||
|
||||
url(r'^logout/$',
|
||||
auth_views.LogoutView.as_view(
|
||||
|
Loading…
Reference in New Issue
Block a user