Switch to new way of specifying admin urls

Should work for deployed version as well, and the old way stopped
working in 1.3, I believe.
This commit is contained in:
Magnus Hagander
2011-11-05 16:05:37 +01:00
parent bd02e36141
commit 614bc1b576

View File

@ -113,7 +113,7 @@ urlpatterns = patterns('',
(r'^admin/mergeorg/$', 'pgweb.core.views.admin_mergeorg'),
# Uncomment the next line to enable the admin:
(r'^admin/(.*)', admin.site.root),
(r'^admin/', include(admin.site.urls)),
# This should not happen in production - serve by the webserver natively!
url(r'^media/(.*)$', 'django.views.static.serve', {