62e735d117a295b1392446eb265ebca4782685b8
[django-cas-provider.git] / cas_provider_examples / simple / urls.py
1 from __future__ import unicode_literals
2
3 from django.conf.urls import include, url
4 from django.contrib import admin
5 from django.views.generic import TemplateView
6 from django import VERSION
7
8 if VERSION >= (2,):
9     from django.urls import path
10
11 urlpatterns = [
12     url(r'^admin/', include(admin.site.urls)) if VERSION < (2,) else path('admin/', admin.site.urls),
13     url(r'^', include('cas_provider.urls')),
14     url(r'^accounts/profile', TemplateView.as_view(template_name='login-success-redirect-target.html')),
15 ]