[extensions-web] Remove ADMIN_MEDIA_PREFIX



commit 60a98aa5616235d80ccdbed4ad812ae74e2abd57
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Mon May 20 15:59:34 2013 -0400

    Remove ADMIN_MEDIA_PREFIX

 sweettooth/settings.py |    5 -----
 sweettooth/urls.py     |   10 ----------
 2 files changed, 0 insertions(+), 15 deletions(-)
---
diff --git a/sweettooth/settings.py b/sweettooth/settings.py
index b7d9975..5d56054 100644
--- a/sweettooth/settings.py
+++ b/sweettooth/settings.py
@@ -62,11 +62,6 @@ STATIC_ROOT = ''
 # Example: "http://media.lawrence.com/static/";
 STATIC_URL = '/static/'
 
-# URL prefix for admin static files -- CSS, JavaScript and images.
-# Make sure to use a trailing slash.
-# Examples: "http://foo.com/static/admin/";, "/static/admin/".
-ADMIN_MEDIA_PREFIX = '/static-admin/'
-
 # Make this unique, and don't share it with anybody.
 SECRET_KEY = 'tv(d+lom-sa^de5i#ab)(g^3249tbzssizuvh8m9_lwppdn1bw'
 
diff --git a/sweettooth/urls.py b/sweettooth/urls.py
index e60b433..83516b0 100644
--- a/sweettooth/urls.py
+++ b/sweettooth/urls.py
@@ -31,13 +31,3 @@ else:
     # and a dummy to reverse on for production.
     urlpatterns.append(url(r'^static/extension-data/(?P<path>.*)', lambda *a, **kw: HttpResponse(),
                            name='extension-data'))
-
-if settings.DEBUG:
-    # XXX - I need to be shot for this
-    # Because we need HTTPS + Apache to test, in debug use
-    # static.serve to serve admin media
-    admin_media_dir = os.path.join(os.path.dirname(admin.__file__), 'media')
-    admin_media_prefix = settings.ADMIN_MEDIA_PREFIX.strip('/')
-
-    urlpatterns.append(url(r'^%s(?P<path>.*)' % (admin_media_prefix,),
-                           static.serve, dict(document_root=admin_media_dir)))


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]