8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-27 07:02:26 +00:00

Fix login screen not being redirected

This commit is contained in:
Alexandre Iooss 2019-04-20 19:25:24 +02:00 committed by klafyvel
parent 831e0c0690
commit e900ce0d0d

View file

@ -62,9 +62,7 @@ urlpatterns = [
url(r'^$', index, name='index'),
url(r'^about/$', about_page, name='about'),
url(r'^contact/$', contact_page, name='contact'),
url('^', include('django.contrib.auth.urls')),
url(r'^i18n/', include('django.conf.urls.i18n')),
url(r'^admin/', include(admin.site.urls)),
url(r'^users/', include('users.urls', namespace='users')),
url(r'^search/', include('search.urls', namespace='search')),
url(
@ -79,8 +77,11 @@ urlpatterns = [
include('preferences.urls', namespace='preferences')
),
# Include contrib auth and contrib admin
# manage/login/ is redirected to the non-admin login page
url(r'^manage/login/$', RedirectView.as_view(pattern_name='login')),
url(r'^', include('django.contrib.auth.urls')),
url(r'^admin/login/$', RedirectView.as_view(pattern_name='login')),
url(r'^admin/', include(admin.site.urls)),
]
# Add debug_toolbar URLs if activated
if 'debug_toolbar' in settings.INSTALLED_APPS: