diff -r 6094ab306d77 -r 2affc8a44dfb web/ldtplatform/settings.py --- a/web/ldtplatform/settings.py Wed May 11 17:47:25 2011 +0200 +++ b/web/ldtplatform/settings.py Thu May 12 18:18:37 2011 +0200 @@ -50,6 +50,9 @@ # Example: "/home/media/media.lawrence.com/" MEDIA_ROOT = '' +# Root of static files used by each app, generated by code or uploaded by users +STATIC_URL = '/static/' + # URL that handles the media served from MEDIA_ROOT. Make sure to use a # trailing slash if there is a path component (optional in other cases). # Examples: "http://media.lawrence.com", "http://example.com/media/" @@ -201,4 +204,13 @@ 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/". +ADMIN_MEDIA_PREFIX = STATIC_URL + 'admin/' +# Used in a lot of templates +LDT_MEDIA_PREFIX = STATIC_URL + 'ldt/' +# URL that handles the media served from MEDIA_ROOT. +MEDIA_URL = BASE_URL + 'static/media/'