diff options
| author | fschildt <florian.schildt@protonmail.com> | 2025-10-19 16:44:21 +0200 | 
|---|---|---|
| committer | fschildt <florian.schildt@protonmail.com> | 2025-10-19 16:44:21 +0200 | 
| commit | 556a5922844cf900149f0b7f58fa67d4b18b2729 (patch) | |
| tree | 24ff0383a988bc387b63e7861b9558ff42125b88 | |
| parent | acce3095ee2818d879c3c5a179f992d686e43200 (diff) | |
set STATIC_ROOT from env, fix .env.dev
| -rw-r--r-- | .env.dev | 3 | ||||
| -rw-r--r-- | fsweb/settings.py | 1 | 
2 files changed, 2 insertions, 2 deletions
@@ -2,7 +2,6 @@  DEBUG=True  # SECURITY WARNING: keep the secret key used in production secret! -SECRET_KEY='django-insecure-!@6fpyap5a=3d@lcv=7hm04534j839ie!*(bz=etm4v_fh&y*b' +SECRET_KEY=django-insecure-!@6fpyap5a=3d@lcv=7hm04534j839ie!*(bz=etm4v_fh&y*b  ALLOWED_HOSTS=localhost,127.0.0.1 - diff --git a/fsweb/settings.py b/fsweb/settings.py index abc823e..9221719 100644 --- a/fsweb/settings.py +++ b/fsweb/settings.py @@ -30,6 +30,7 @@ else:  DEBUG = os.getenv('DEBUG') == 'True'  SECRET_KEY = os.getenv('SECRET_KEY')  ALLOWED_HOSTS = os.getenv('ALLOWED_HOSTS', '').split(',') +STATIC_ROOT = os.getenv('STATIC_ROOT')  if not SECRET_KEY:      raise ValueError("SECRET_KEY is not set in the .env file")  | 
