From: Brett Parker Date: Fri, 5 Jul 2013 10:09:27 +0000 (+0100) Subject: New admin url syntax X-Git-Url: https://git.sommitrealweird.co.uk/eatslugs.git/commitdiff_plain/5cb99adccaa84ac24b67ea1e79d56db31a92f844 New admin url syntax --- diff --git a/eatslugs/urls.py b/eatslugs/urls.py index 8597968..cd08419 100644 --- a/eatslugs/urls.py +++ b/eatslugs/urls.py @@ -12,5 +12,5 @@ urlpatterns = patterns('', # (r'^recipes/', include('recipes.urls')), (r'^$', direct_to_template, {"template": 'main_index.html'},), (r'^media/(?P.*)$', serve, {'document_root': settings.MEDIA_ROOT, 'show_indexes': False}), - (r'^admin/(.*)', admin.site.root), + (r'^admin/', include(admin.site.urls)), )