diff gpp/settings.py @ 312:88b2b9cb8c1f

Fixing #142; cut over to the django.contrib.staticfiles app.
author Brian Neal <bgneal@gmail.com>
date Thu, 27 Jan 2011 02:56:10 +0000
parents 8a0bae48b6ca
children 767cedc7d12a
line wrap: on
line diff
--- a/gpp/settings.py	Thu Jan 20 04:40:14 2011 +0000
+++ b/gpp/settings.py	Thu Jan 27 02:56:10 2011 +0000
@@ -55,6 +55,11 @@
 # Examples: "http://foo.com/media/", "/media/".
 ADMIN_MEDIA_PREFIX = local_settings.ADMIN_MEDIA_PREFIX
 
+# Staticfiles settings:
+STATICFILES_DIRS = local_settings.STATICFILES_DIRS
+STATIC_ROOT = local_settings.STATIC_ROOT
+STATIC_URL = local_settings.STATIC_URL
+
 # Make this unique, and don't share it with anybody.
 SECRET_KEY = local_settings.SECRET_KEY
 
@@ -111,6 +116,7 @@
     "django.core.context_processors.debug",
     "django.core.context_processors.request",
     "django.core.context_processors.media",
+    "django.core.context_processors.static",
     "django.contrib.messages.context_processors.messages",
 )
 
@@ -125,6 +131,7 @@
     'django.contrib.messages',
     'django.contrib.sessions',
     'django.contrib.sites',
+    'django.contrib.staticfiles',
     'elsewhere',
     'tagging',
     'haystack',