Usage of namespace for / -> /login redirection

This commit is contained in:
Valentin Samir 2015-05-30 18:58:58 +02:00
parent 238d6da2a3
commit b6e2a7320b

View File

@ -17,7 +17,7 @@ from . import views
urlpatterns = patterns(
'',
url(r'^$', RedirectView.as_view(pattern_name="login")),
url(r'^$', RedirectView.as_view(pattern_name="cas_server:login")),
url('^login$', views.LoginView.as_view(), name='login'),
url('^logout$', views.LogoutView.as_view(), name='logout'),
url('^validate$', views.Validate.as_view(), name='validate'),