Switch to using staticfiles app for serving, well, static files

This is required by the new admin interface
This commit is contained in:
Magnus Hagander
2013-05-25 14:16:07 -04:00
parent 5d608f1fe4
commit 2ea607b942
2 changed files with 5 additions and 7 deletions

View File

@ -41,11 +41,11 @@ MEDIA_ROOT = ''
# trailing slash if there is a path component (optional in other cases).
# Examples: "http://media.lawrence.com", "http://example.com/media/"
MEDIA_URL = ''
STATIC_URL = '/media/'
# 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 = '/adminmedia/'
STATICFILES_DIRS = (
'../media/',
)
# Make this unique, and don't share it with anybody.
SECRET_KEY = 'REALLYCHANGETHISINSETTINGS_LOCAL.PY'
@ -94,6 +94,7 @@ INSTALLED_APPS = [
'django.contrib.sessions',
'django.contrib.admin',
'django.contrib.markup',
'django.contrib.staticfiles',
'pgweb.core',
'pgweb.account',
'pgweb.news',