diff -r 5578dcb54f4d -r b62a2a3e272d web/ldtplatform/config.py.tmpl --- a/web/ldtplatform/config.py.tmpl Mon May 09 18:57:23 2011 +0200 +++ b/web/ldtplatform/config.py.tmpl Wed May 11 16:19:46 2011 +0200 @@ -5,7 +5,7 @@ BASE_DIR = os.path.dirname(os.path.abspath(__file__)).rstrip("/")+"/" BASE_URL = '/~ymh/platform/' WEB_URL = 'http://localhost/' -MEDIA_BASE_URL = BASE_URL + 'static/' +STATIC_URL = BASE_URL + 'static/' STREAM_URL = MEDIA_BASE_URL + "/content/" STREAM_SRC_PREFIX = "" @@ -16,11 +16,15 @@ MEDIA_ROOT = os.path.abspath(BASE_DIR + "../static/") +# 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 = "C:/user/myfolder/my_platform/platform/web/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/" -MEDIA_URL = MEDIA_BASE_URL +MEDIA_URL = STATIC_URL CONTENT_ROOT = MEDIA_ROOT + "media/content/" @@ -29,8 +33,8 @@ # 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 = MEDIA_URL + 'admin/' -LDT_MEDIA_PREFIX = MEDIA_URL + 'ldt/' +ADMIN_MEDIA_PREFIX = STATIC_URL + 'admin/' +LDT_MEDIA_PREFIX = STATIC_URL + 'ldt/' DATABASES = { 'default': {