Skip to content

Commit

Permalink
chore: Update settings to handbook template
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Jan 8, 2025
1 parent df961d4 commit de7e9ad
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion core/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
SECRET_KEY = os.getenv("SECRET_KEY", "2n5k63x#a(xc@-!tpxisd)bd!3bimfr1prj-*t7tnl(*j+#$0k")

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = not production
DEBUG = os.getenv("DEBUG", str(not production)) == "True"

ALLOWED_HOSTS = [".localhost", "127.0.0.1", "[::1]", "0.0.0.0"] # noqa: S104 # Docker
if "ALLOWED_HOSTS" in os.environ:
Expand Down Expand Up @@ -188,6 +188,11 @@
"handlers": ["null"],
"propagate": False,
},
"django.db.backends": {
"handlers": ["console"],
"level": "DEBUG" if production else os.getenv("LOG_LEVEL", "INFO"),
"propagate": False,
},
},
}

Expand Down

0 comments on commit de7e9ad

Please sign in to comment.