Update urlpattern for django 1.10

This commit is contained in:
Valentin Samir 2016-07-23 18:47:52 +02:00
parent 9bae371199
commit 018a5951a2

View file

@ -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<provider>([^/]+)))?$", views.FederateAuth.as_view(), name='federateAuth'),
)
]