diff -r 4535dafa6007 -r 9886ab183b09 web/ldtplatform/config.py.tmpl --- a/web/ldtplatform/config.py.tmpl Mon May 16 20:00:36 2011 +0200 +++ b/web/ldtplatform/config.py.tmpl Wed May 18 19:17:39 2011 +0200 @@ -12,18 +12,19 @@ STREAM_SRC_PREFIX = "" +BASE_STATIC_ROOT = os.path.abspath(BASE_DIR + "../static/").rstrip("/")+"/" # Absolute path to the directory that holds media. # Example: "/home/media/media.lawrence.com/" -MEDIA_ROOT = os.path.abspath(BASE_DIR + "../static/").rstrip("/")+"/" +MEDIA_ROOT = BASE_STATIC_ROOT + "media/" # Absolute path to the directory that static files (js, css, swf...) # DO NOT forget to do command line ./manage.py collectstatic to gather static media into the web/static folder -STATIC_ROOT = MEDIA_ROOT + "site/" +STATIC_ROOT = BASE_STATIC_ROOT + "site/" -CONTENT_ROOT = MEDIA_ROOT + "media/content/" +CONTENT_ROOT = BASE_STATIC_ROOT + "content/" # PATH where uploaded media are put. STREAM_PATH = CONTENT_ROOT