diff --git a/bd_api/settings/base.py b/bd_api/settings/base.py index 034da201..a51cf0f6 100644 --- a/bd_api/settings/base.py +++ b/bd_api/settings/base.py @@ -15,6 +15,12 @@ from os import getenv, path from pathlib import Path +# SECURITY WARNING: don't run with debug turned on in production! +DEBUG = True + +# SECURITY WARNING: keep the secret key used in production secret! +SECRET_KEY = "django-insecure-h@^ve4439x+m8mzd7ii(l%offc65@g-t0dtb7m$(z1j2u_wzav" + # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent STATIC_ROOT = BASE_DIR / "static" diff --git a/bd_api/settings/remote.py b/bd_api/settings/remote.py index a1e1d2f3..bac5e6e1 100644 --- a/bd_api/settings/remote.py +++ b/bd_api/settings/remote.py @@ -12,10 +12,7 @@ DEBUG = False # SECURITY WARNING: keep the secret key used in production secret! -SECRET_KEY = getenv( - "DJANGO_SECRET_KEY", - "django-insecure-h@^ve4439x+m8mzd7ii(l%offc65@g-t0dtb7m$(z1j2u_wzav", -) +SECRET_KEY = getenv("DJANGO_SECRET_KEY") # CSRF # https://docs.djangoproject.com/en/4.2/ref/csrf/