New admin url syntax
authorBrett Parker <iDunno@sommitrealweird.co.uk>
Fri, 5 Jul 2013 10:09:27 +0000 (11:09 +0100)
committerBrett Parker <iDunno@sommitrealweird.co.uk>
Fri, 5 Jul 2013 10:09:27 +0000 (11:09 +0100)
eatslugs/urls.py

index 8597968..cd08419 100644 (file)
@@ -12,5 +12,5 @@ urlpatterns = patterns('',
     # (r'^recipes/', include('recipes.urls')),
     (r'^$', direct_to_template, {"template": 'main_index.html'},),
     (r'^media/(?P<path>.*)$', serve, {'document_root': settings.MEDIA_ROOT, 'show_indexes': False}),
-    (r'^admin/(.*)', admin.site.root),
+    (r'^admin/', include(admin.site.urls)),
 )