Skip to content

Commit

Permalink
fix: add default secret key for base environment
Browse files Browse the repository at this point in the history
  • Loading branch information
vncsna committed Jan 16, 2024
1 parent 139a6a0 commit 8e8700e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 6 additions & 0 deletions bd_api/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
5 changes: 1 addition & 4 deletions bd_api/settings/remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down

0 comments on commit 8e8700e

Please sign in to comment.