Skip to content

Commit

Permalink
fix: Reestablish key and host defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
hepplerj committed Jul 30, 2024
1 parent 079a5cc commit 39a1732
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,19 @@
# ------------------------------------------------------------------------------

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = env("DJANGO_SECRET_KEY")
SECRET_KEY = env(
"DJANGO_SECRET_KEY",
default="django-insecure cin)v(4&89%_$17s0yezo=t+^1b*mq)=+348r-bv(ms#pm2y2#",
)

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = env("DEBUG")

ALLOWED_HOSTS = env.list("DJANGO_ALLOWED_HOSTS")
ALLOWED_HOSTS = env.list("DJANGO_ALLOWED_HOSTS", default=["localhost"])
CSRF_TRUSTED_ORIGINS = env.list(
"DJANGO_CSRF_TRUSTED_ORIGINS", default=["http://localhost"]
)


# Application definition

INSTALLED_APPS = [
Expand Down Expand Up @@ -129,9 +132,9 @@
"ENGINE": "django.db.backends.postgresql",
"HOST": env("DB_HOST", default="localhost"),
"PORT": env("DB_PORT", default="5432"),
"NAME": env("DB_NAME"),
"USER": env("DB_USER"),
"PASSWORD": env("DB_PASSWORD"),
"NAME": env("DB_NAME", default="denig"),
"USER": env("DB_USER", default="denig"),
"PASSWORD": env("DB_PASS", default="password"),
}
}

Expand Down

0 comments on commit 39a1732

Please sign in to comment.