diff --git a/cas_server/urls.py b/cas_server/urls.py index 5881557..aa014f2 100644 --- a/cas_server/urls.py +++ b/cas_server/urls.py @@ -10,14 +10,13 @@ # # (c) 2015-2016 Valentin Samir """urls for the app""" -from django.conf.urls import patterns, url +from django.conf.urls import url from django.views.generic import RedirectView from django.views.decorators.debug import sensitive_post_parameters, sensitive_variables from cas_server import views -urlpatterns = patterns( - '', +urlpatterns = [ url(r'^$', RedirectView.as_view(pattern_name="cas_server:login")), url( '^login$', @@ -60,4 +59,4 @@ urlpatterns = patterns( name='auth' ), url("^federate(?:/(?P([^/]+)))?$", views.FederateAuth.as_view(), name='federateAuth'), -) +]