Move /selectable/ into /admin/ to avoid caching issues
authorMagnus Hagander <magnus@hagander.net>
Thu, 23 Jun 2016 16:06:05 +0000 (18:06 +0200)
committerMagnus Hagander <magnus@hagander.net>
Thu, 23 Jun 2016 16:06:05 +0000 (18:06 +0200)
Since we only use it for /admin/ for now, we can safely put it there
until we change that.

pgweb/urls.py

index e439f4c91c4111a38241dc65a27866144c7a898a..e60df64e75c3d71977e2bdf3004c57a95979208a 100644 (file)
@@ -132,12 +132,12 @@ urlpatterns = patterns('',
        (r'^admin/purge/$', 'pgweb.core.views.admin_purge'),
        (r'^admin/mergeorg/$', 'pgweb.core.views.admin_mergeorg'),
 
+       # We use selectable only for /admin/ for now, so put it there to avoid caching issues
+       (r'^admin/selectable/', include('selectable.urls')),
+
        # Uncomment the next line to enable the admin:
        (r'^admin/', include(admin.site.urls)),
 
-    # We use selectable...
-       (r'^selectable/', include('selectable.urls')),
-
        # This should not happen in production - serve by the webserver natively!
        url(r'^(favicon.ico)$', 'django.views.static.serve', {
                'document_root': 'media',