# 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'
'django.contrib.sessions',
'django.contrib.admin',
'django.contrib.markup',
+ 'django.contrib.staticfiles',
'pgweb.core',
'pgweb.account',
'pgweb.news',
(r'^admin/', include(admin.site.urls)),
# This should not happen in production - serve by the webserver natively!
- url(r'^media/(.*)$', 'django.views.static.serve', {
- 'document_root': '../media',
- }),
url(r'^(favicon.ico)$', 'django.views.static.serve', {
'document_root': '../media',
}),