removing default for foreign key field because it throws an error with mysql.
[django-cas-provider.git] / cas_provider_examples / simple / urls.py
index 71e70f3..f1b5378 100644 (file)
@@ -1,12 +1,11 @@
 from __future__ import unicode_literals
 
 from __future__ import unicode_literals
 
-from django.conf.urls import patterns, include, url
+from django.conf.urls import include, url
 from django.contrib import admin
 from django.views.generic import TemplateView
 
 from django.contrib import admin
 from django.views.generic import TemplateView
 
-urlpatterns = patterns('',
+urlpatterns = [
     url(r'^admin/', include(admin.site.urls)),
     url(r'^admin/', include(admin.site.urls)),
-                       url(r'^', include('cas_provider.urls')),
-                       url(r'^accounts/profile', TemplateView.as_view(template_name='login-success-redirect-target.html')),
-
-                       )
+    url(r'^', include('cas_provider.urls')),
+    url(r'^accounts/profile', TemplateView.as_view(template_name='login-success-redirect-target.html')),
+]