settings: add sane default for static root

This commit is contained in:
Frédéric Péters 2014-08-18 11:18:04 +02:00
parent 29cf4e009a
commit 5535fb4ae3
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ USE_TZ = True
# https://docs.djangoproject.com/en/1.6/howto/static-files/
STATIC_URL = '/static/'
STATIC_ROOT = os.environ.get('STATIC_ROOT')
STATIC_ROOT = os.environ.get('STATIC_ROOT', os.path.join(BASE_DIR, 'static'))
TEMPLATE_DIRS = (
os.path.join(BASE_DIR, 'hobo', 'templates'),