From e48d553e3facbdf34710333d0c12af4d73ae4deb Mon Sep 17 00:00:00 2001 From: erichhasl Date: Fri, 19 May 2017 22:30:53 +0200 Subject: [PATCH] set static root needed for deployment --- jdav_web/jdav_web/settings.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jdav_web/jdav_web/settings.py b/jdav_web/jdav_web/settings.py index 5117205..79bfe28 100644 --- a/jdav_web/jdav_web/settings.py +++ b/jdav_web/jdav_web/settings.py @@ -132,6 +132,10 @@ STATIC_URL = '/static/' STATICFILES_DIRS = [ os.path.join(BASE_DIR, "static") ] +# static root where all the static files are collected to +# use python3 manage.py collectstatic to collect static files in the STATIC_ROOT +# this is needed for deployment +STATIC_ROOT = os.path.join((os.path.join(BASE_DIR, os.pardir)), "static") # Locale files (translations)