mirror of
https://github.com/postgres/pgweb.git
synced 2025-08-03 15:38:59 +00:00
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:
@ -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', {
|
||||
|
Reference in New Issue
Block a user