harvard-vpal/bridge-adaptivity

STATIC_ROOT setting

Closed this issue · 2 comments

When running with local settings, if there is no STATIC_ROOT setting in settings/secure.py,

STATIC_ROOT = secure.STATIC_ROOT

throws an error before setting the default value for STATIC_ROOT defined in

STATIC_ROOT = normpath(join(SITE_ROOT, 'http_static'))

Maybe something like STATIC_ROOT = getattr(secure,'STATIC_ROOT',normpath(join(SITE_ROOT, 'http_static'))) would work in base.py? Edit: actually, it makes more sense to me to set defaults in local.py

Similar situation with some other settings, like ALLOWED_HOSTS and DATABASES. For now we can just assume that some placeholder values are set in a secure.py file even though they might be ignored when running with local settings. I might also refactor the settings a bit later.