diff options
| -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")  | 
