web/blinkster/settings.py
changeset 105 90284efeb233
parent 88 21611591da9b
child 115 4cbd113cdc99
--- a/web/blinkster/settings.py	Fri May 06 02:12:30 2011 +0200
+++ b/web/blinkster/settings.py	Tue May 17 10:21:22 2011 +0200
@@ -117,6 +117,7 @@
     'django.contrib.sites',
     'django.contrib.messages',
     'django.contrib.admin',
+    'django.contrib.staticfiles',
     'registration',
     'modeltranslation',
     'tagging',
@@ -186,6 +187,7 @@
 SOCIAL_AUTH_COMPLETE_URL_NAME  = 'complete'
 SOCIAL_AUTH_ASSOCIATE_URL_NAME = 'associate_complete'
 
+AUTO_INDEX_AFTER_SAVE = True
 
 from config import *
 
@@ -207,4 +209,17 @@
     GLOBAL_LOG_LEVEL = LOG_LEVEL
 if not "GLOBAL_LOG_HANDLERS" in locals():
     GLOBAL_LOG_HANDLERS = [{'handler':logging.FileHandler(LOG_FILE), 'format':"%(asctime)s - %(levelname)s : %(message)s"}]
+    
+# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
+# trailing slash.
+# Examples: "http://foo.com/media/", "/media/".
+if not "ADMIN_MEDIA_PREFIX" in locals():
+    ADMIN_MEDIA_PREFIX = STATIC_URL + 'admin/'
+# Used in a lot of templates
+if not "LDT_MEDIA_PREFIX" in locals():
+    LDT_MEDIA_PREFIX = STATIC_URL + 'ldt/'
+# URL that handles the media served from MEDIA_ROOT.
+if not "MEDIA_URL" in locals():
+    MEDIA_URL = BASE_URL + 'static/media/'
 
+