Skip to content

Commit bd27c42

Browse files
committed
fix: revert to previous settings
1 parent f96ee44 commit bd27c42

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

backend/config/settings/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
DATABASES = {
7575
"default": {
7676
"ATOMIC_REQUESTS": True,
77-
# "OPTIONS": {"options": "-c search_path=secobserve"},
77+
"OPTIONS": {"options": "-c search_path=secobserve"},
7878
"ENGINE": env("DATABASE_ENGINE"),
7979
"HOST": env("DATABASE_HOST"),
8080
"PORT": env("DATABASE_PORT"),

backend/config/settings/dist.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,15 @@
44
# GENERAL
55
# ------------------------------------------------------------------------------
66
# https://docs.djangoproject.com/en/dev/ref/settings/#debug
7-
DEBUG = True
7+
DEBUG = False
8+
# https://docs.djangoproject.com/en/dev/ref/settings/#secret-key
9+
SECRET_KEY = env(
10+
"DJANGO_SECRET_KEY",
11+
default="NxYPEF5lNGgk3yonndjSbwP77uNJxOvfKTjF5aVBqsHktNlf1wfJHHvJ8iifk32r",
12+
)
13+
# https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts
14+
ALLOWED_HOSTS = env("ALLOWED_HOSTS", default=["localhost", "0.0.0.0", "127.0.0.1"]) # nosec B104
15+
# This file is not used for production
816

917
# MIDDLEWARE
1018
# ------------------------------------------------------------------------------

0 commit comments

Comments
 (0)