comparison 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
comparison
equal deleted inserted replaced
311:b1c39788e511 312:88b2b9cb8c1f
52 52
53 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a 53 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
54 # trailing slash. 54 # trailing slash.
55 # Examples: "http://foo.com/media/", "/media/". 55 # Examples: "http://foo.com/media/", "/media/".
56 ADMIN_MEDIA_PREFIX = local_settings.ADMIN_MEDIA_PREFIX 56 ADMIN_MEDIA_PREFIX = local_settings.ADMIN_MEDIA_PREFIX
57
58 # Staticfiles settings:
59 STATICFILES_DIRS = local_settings.STATICFILES_DIRS
60 STATIC_ROOT = local_settings.STATIC_ROOT
61 STATIC_URL = local_settings.STATIC_URL
57 62
58 # Make this unique, and don't share it with anybody. 63 # Make this unique, and don't share it with anybody.
59 SECRET_KEY = local_settings.SECRET_KEY 64 SECRET_KEY = local_settings.SECRET_KEY
60 65
61 # List of Loader classes that know how to import templates from various sources. 66 # List of Loader classes that know how to import templates from various sources.
109 TEMPLATE_CONTEXT_PROCESSORS = ( 114 TEMPLATE_CONTEXT_PROCESSORS = (
110 "django.contrib.auth.context_processors.auth", 115 "django.contrib.auth.context_processors.auth",
111 "django.core.context_processors.debug", 116 "django.core.context_processors.debug",
112 "django.core.context_processors.request", 117 "django.core.context_processors.request",
113 "django.core.context_processors.media", 118 "django.core.context_processors.media",
119 "django.core.context_processors.static",
114 "django.contrib.messages.context_processors.messages", 120 "django.contrib.messages.context_processors.messages",
115 ) 121 )
116 122
117 INSTALLED_APPS = [ 123 INSTALLED_APPS = [
118 'django.contrib.admin', 124 'django.contrib.admin',
123 'django.contrib.humanize', 129 'django.contrib.humanize',
124 'django.contrib.markup', 130 'django.contrib.markup',
125 'django.contrib.messages', 131 'django.contrib.messages',
126 'django.contrib.sessions', 132 'django.contrib.sessions',
127 'django.contrib.sites', 133 'django.contrib.sites',
134 'django.contrib.staticfiles',
128 'elsewhere', 135 'elsewhere',
129 'tagging', 136 'tagging',
130 'haystack', 137 'haystack',
131 'accounts', 138 'accounts',
132 'antispam', 139 'antispam',