diff --git a/nummi/nummi/settings.py b/nummi/nummi/settings.py index 1050bab..c9f7900 100644 --- a/nummi/nummi/settings.py +++ b/nummi/nummi/settings.py @@ -22,6 +22,7 @@ if CONFIG_PATH is not None: # Build paths inside the project like this: BASE_DIR / 'subdir'. MEDIA_CONF = CONFIG.get("media", {}) +STATIC_CONF = CONFIG.get("static", {}) BASE_DIR = Path(__file__).resolve().parent.parent MEDIA_ROOT = Path(MEDIA_CONF.get("root", "/var/lib/nummi")) MEDIA_URL = "media/" @@ -124,7 +125,7 @@ USE_TZ = True # https://docs.djangoproject.com/en/4.0/howto/static-files/ STATIC_URL = "static/" -STATIC_ROOT = "/srv/nummi" +STATIC_ROOT = STATIC_CONF.get("root", "/srv/nummi") LOGIN_URL = "login" # Default primary key field type