]> git.sommitrealweird.co.uk Git - sommitrealweird.git/blobdiff - sommitrealweird/urls.py
Change to Django 1.3 syntax for admin site
[sommitrealweird.git] / 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}),
-    (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')),