From 018a5951a2682de3bd82f69597006e660a0c709f Mon Sep 17 00:00:00 2001 From: Valentin Samir Date: Sat, 23 Jul 2016 18:47:52 +0200 Subject: [PATCH] Update urlpattern for django 1.10 --- cas_server/urls.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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'), -) +]