]> git.sommitrealweird.co.uk Git - eatslugs.git/commitdiff
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 8597968285bfcf2c85407b288303d234e0879476..cd084195652007f90c54e974273e10aef49c7cac 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)),
 )