kaeizen commited on
Commit
6ee157c
·
1 Parent(s): 0779a71

use os.environ.get

Browse files
Files changed (1) hide show
  1. backend/settings.py +1 -1
backend/settings.py CHANGED
@@ -25,7 +25,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent
25
  # See https://docs.djangoproject.com/en/5.2/howto/deployment/checklist/
26
 
27
  # SECURITY WARNING: keep the secret key used in production secret!
28
- SECRET_KEY = os.environ["SECRET_KEY"]
29
 
30
  # SECURITY WARNING: don't run with debug turned on in production!
31
  DEBUG = os.environ.get("DEBUG", "True") == "True"
 
25
  # See https://docs.djangoproject.com/en/5.2/howto/deployment/checklist/
26
 
27
  # SECURITY WARNING: keep the secret key used in production secret!
28
+ SECRET_KEY = os.environ.get("SECRET_KEY", "local-dev-secret")
29
 
30
  # SECURITY WARNING: don't run with debug turned on in production!
31
  DEBUG = os.environ.get("DEBUG", "True") == "True"