fnp
/
django-cas-provider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add South migrations back, use in tests in Django<1.7.
[django-cas-provider.git]
/
cas_provider_examples
/
simple
/
urls.py
diff --git
a/cas_provider_examples/simple/urls.py
b/cas_provider_examples/simple/urls.py
index
c717237
..
71e70f3
100644
(file)
--- a/
cas_provider_examples/simple/urls.py
+++ b/
cas_provider_examples/simple/urls.py
@@
-1,10
+1,12
@@
-from
django.conf.urls.defaults import patterns, include, url
+from
__future__ import unicode_literals
-import cas_provider
-from django.views.generic.simple import redirect_to, direct_to_template
+from django.conf.urls import patterns, include, url
+from django.contrib import admin
+from django.views.generic import TemplateView
urlpatterns = patterns('',
urlpatterns = patterns('',
+ url(r'^admin/', include(admin.site.urls)),
url(r'^', include('cas_provider.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')
),
)
)