X-Git-Url: https://git.mdrn.pl/django-cas-provider.git/blobdiff_plain/53585f7615b3a647d1badda1a2ebd7f5ec81f607..14190defb1cc8b35e4f47a7b3b64788754aa1097:/cas_provider_examples/simple/urls.py diff --git a/cas_provider_examples/simple/urls.py b/cas_provider_examples/simple/urls.py index d13d505..dfa9975 100644 --- a/cas_provider_examples/simple/urls.py +++ b/cas_provider_examples/simple/urls.py @@ -1,13 +1,10 @@ -from django.conf.urls import include, url +from django.urls import path, include from django.contrib import admin from django.views.generic import TemplateView from django import VERSION -if VERSION >= (2,): - from django.urls import path - urlpatterns = [ - url(r'^admin/', include(admin.site.urls)) if VERSION < (2,) else path('admin/', admin.site.urls), - url(r'^', include('cas_provider.urls')), - url(r'^accounts/profile', TemplateView.as_view(template_name='login-success-redirect-target.html')), + path('admin/', admin.site.urls), + path('', include('cas_provider.urls')), + path('accounts/profile/', TemplateView.as_view(template_name='login-success-redirect-target.html')), ]