From 60c6a9ee830e188526cbbd93df02e9723837f61e Mon Sep 17 00:00:00 2001 From: Jeffrey Forman Date: Sat, 27 Oct 2012 18:41:25 -0400 Subject: [PATCH] Make the admin UI work again now that I'm running django 1.4 --- binder/settings.py | 6 ++---- binder/urls.py | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/binder/settings.py b/binder/settings.py index f7dd8d2..710c0f0 100644 --- a/binder/settings.py +++ b/binder/settings.py @@ -53,10 +53,7 @@ MEDIA_ROOT = os.path.join(SITE_ROOT, "files") # Examples: "http://media.lawrence.com", "http://example.com/media/" MEDIA_URL = "/files/" -# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a -# trailing slash. -# Examples: "http://foo.com/media/", "/media/". -ADMIN_MEDIA_PREFIX = '/media/' +STATIC_URL = '/media/' # Make this unique, and don't share it with anybody. SECRET_KEY = 'iuo-zka8nnv0o+b*7#_*fcep$@f^35=)c#7_20z6i8g0oc&r!g' @@ -88,5 +85,6 @@ INSTALLED_APPS = ( 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.admin', + 'django.contrib.staticfiles', 'bcommon', ) diff --git a/binder/urls.py b/binder/urls.py index 794efb7..b14e508 100644 --- a/binder/urls.py +++ b/binder/urls.py @@ -6,7 +6,7 @@ from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', - (r'^admin/', include(admin.site.urls)), + url(r'^admin/', include(admin.site.urls)), url(r'^$', 'bcommon.views.home_index', name="index"), url(r'^server_list/$', 'bcommon.views.view_server_list', name="server_list"),