d13d50597ec62a2f985ffb9a7bfdf3958f052f76
[django-cas-provider.git] / cas_provider_examples / simple / urls.py
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
5
6 if VERSION >= (2,):
7     from django.urls import path
8
9 urlpatterns = [
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')),
13 ]