dynamicweb/settings: base, using PROJECT_ROOT instead of BASE_DIR

Signed-off-by: rscnt <rascnt@gmail.com>
This commit is contained in:
rascencio 2015-11-02 15:58:52 -06:00
parent 813db391cf
commit be7579134f

View file

@ -268,15 +268,15 @@ if LOGIN_REDIRECT_URL is None:
STATIC_URL = '/static/' STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'static') STATIC_ROOT = os.path.join(PROJECT_DIR, 'static')
MEDIA_ROOT = os.path.join(BASE_DIR, 'media') MEDIA_ROOT = os.path.join(PROJECT_DIR, 'media')
MEDIA_URL = APP_ROOT_ENDPOINT + 'media/' MEDIA_URL = APP_ROOT_ENDPOINT + 'media/'
FILE_UPLOAD_PERMISSIONS = 0o644 FILE_UPLOAD_PERMISSIONS = 0o644
# Templates confs # Templates confs
TEMPLATE_DIRS = ( TEMPLATE_DIRS = (
os.path.join(BASE_DIR, "templates"), os.path.join(PROJECT_DIR, "templates"),
) )
META_SITE_PROTOCOL = 'http' META_SITE_PROTOCOL = 'http'