Commit 018a5951 authored by Valentin Samir's avatar Valentin Samir

Update urlpattern for django 1.10

parent 9bae3711
......@@ -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'),
)
]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment