X-Git-Url: https://git.mdrn.pl/django-cas-provider.git/blobdiff_plain/02f62d8125f0fdc4e8610bd80d336859debe196b..2cf88a572643b5e54858f5d3b00d188b8e7230ed:/cas_provider_examples/simple/urls.py diff --git a/cas_provider_examples/simple/urls.py b/cas_provider_examples/simple/urls.py index cf09e9b..1d8eafa 100644 --- a/cas_provider_examples/simple/urls.py +++ b/cas_provider_examples/simple/urls.py @@ -1,10 +1,10 @@ from django.conf.urls import patterns, include, url - -import cas_provider -from django.views.generic.simple import redirect_to, direct_to_template +from django.contrib import admin +from django.views.generic import TemplateView urlpatterns = patterns('', + url(r'^admin/', include(admin.site.urls)), url(r'^', include('cas_provider.urls')), - url(r'^accounts/profile', direct_to_template, {'template': 'login-success-redirect-target.html'}), + url(r'^accounts/profile', TemplateView.as_view(template_name='login-success-redirect-target.html')), )