]> git.sommitrealweird.co.uk Git - sommitrealweird.git/commitdiff
Change to Django 1.3 syntax for admin site
authorBrett Parker <iDunno@sommitrealweird.co.uk>
Tue, 12 Jun 2012 14:21:36 +0000 (15:21 +0100)
committerBrett Parker <iDunno@sommitrealweird.co.uk>
Tue, 12 Jun 2012 14:21:36 +0000 (15:21 +0100)
sommitrealweird/urls.py

index 6106b9f61afdb47f47c7b6f5ca6ef76ba1311f8e..6450746a057fdff162885f3382f7d8d24ce95b54 100644 (file)
@@ -22,7 +22,7 @@ urlpatterns = patterns('',
     # Uncomment this for admin:
     (r'^$', 'bpcms.views.document_view', {'slug': 'index'}),
     (r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': MEDIA_ROOT, 'show_indexes': True}),
     # Uncomment this for admin:
     (r'^$', 'bpcms.views.document_view', {'slug': 'index'}),
     (r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': MEDIA_ROOT, 'show_indexes': True}),
-    (r'^admin/(.*)$', admin.site.root),
+    (r'^admin/', include(admin.site.urls)),
     (r'^blog/', include('blog.urls')),
     (r'^photo/', include('photo.urls')),
     (r'^photos/', include('photo.urls')),
     (r'^blog/', include('blog.urls')),
     (r'^photo/', include('photo.urls')),
     (r'^photos/', include('photo.urls')),