Fix standard urls. Test for Django up to 5.0.
[django-cas-provider.git] / cas_provider / urls.py
index 051ad1c..7f32a48 100644 (file)
@@ -1,11 +1,14 @@
-from django.conf.urls.defaults import *
+from django.urls import path
+from cas_provider import views
 
 
-from views import *
 
 
-urlpatterns = patterns('',
-                       url(r'^login/', login),
-                       url(r'^socialauth-login/$', socialauth_login),
-                       url(r'^validate/', validate),
-                       url(r'^logout/', logout),
-                       url(r'^merge/', login, {'merge': True, 'template': 'cas/merge.html'})
-                       )
+urlpatterns = [
+    path('login/merge/', views.login, {'merge': True, 'template_name': 'cas/merge.html'}),
+    path('login', views.login, name='cas_login'),
+    path('socialauth-login/', views.login, name='cas_socialauth_login'),
+    path('validate', views.validate, name='cas_validate'),
+    path('proxy', views.proxy, name='proxy'),
+    path('serviceValidate', views.service_validate, name='cas_service_validate'),
+    path('proxyValidate', views.proxy_validate, name='cas_proxy_validate'),
+    path('logout', views.logout, name='cas_logout'),
+]