* Replace all tabs with spaces.
[matthijs/projects/xerxes.git] / settings.py
index 7d91bf193d1b2c1ef63d59c7910bdb1d1b5926d8..7b4a4a63e866d58761b783a8f22f2bb64ec5ae6e 100644 (file)
@@ -43,6 +43,10 @@ MEDIA_ROOT = ''
 # Example: "http://media.lawrence.com"
 MEDIA_URL = ''
 
+# URL prefix for static files. Will be made available by
+# ee.tools.context_processors.static
+STATIC_URL_PREFIX = '/static/'
+
 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
 # trailing slash.
 # Examples: "http://foo.com/media/", "/media/".
@@ -71,7 +75,7 @@ TEMPLATE_DIRS = (
     # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
     # Always use forward slashes, even on Windows.
     # Don't forget to use absolute paths, not relative paths.
-       '/home/matthijs/docs/src/django/ee/templates',
+    '/home/matthijs/docs/src/django/ee/templates',
 )
 
 INSTALLED_APPS = (
@@ -80,15 +84,17 @@ INSTALLED_APPS = (
     'django.contrib.sessions',
     'django.contrib.sites',
     'django.contrib.admin',
-       'ee.events',
-       'ee.influences',
-       'ee.base',
+    'ee.events',
+    'ee.influences',
+    'ee.base',
 )
 
 TEMPLATE_CONTEXT_PROCESSORS = (
-       "django.core.context_processors.auth",
-       "django.core.context_processors.debug",
-       "django.core.context_processors.i18n",
+    "django.core.context_processors.auth",
+    "django.core.context_processors.debug",
+    "django.core.context_processors.i18n",
+    # Add STATIC_URL_PREFIX to the context
+    "ee.tools.context_processors.static",
 )
 
 LOGIN_URL = "/accounts/login/"
@@ -97,6 +103,6 @@ LOGIN_REDIRECT_URL = "/influences/"
 # Allow authentication against the phpb user accounts
 
 AUTHENTICATION_BACKENDS = (
-       'ee.auth.PhpBBBackend',
-       'django.contrib.auth.backends.ModelBackend',
+    'ee.auth.PhpBBBackend',
+    'django.contrib.auth.backends.ModelBackend',
 )