1 from django.conf.urls import include, url
2 from django.contrib import admin
3 from django.views.generic import TemplateView
4 from django import VERSION
7 from django.urls import path
10 url(r'^admin/', include(admin.site.urls)) if VERSION < (2,) else path('admin/', admin.site.urls),
11 url(r'^', include('cas_provider.urls')),
12 url(r'^accounts/profile', TemplateView.as_view(template_name='login-success-redirect-target.html')),