Skip to content

Commit

Permalink
chore: Match Django cookiecutter
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Oct 9, 2024
1 parent 7251ee8 commit 8bcc7df
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 @@ -33,7 +33,7 @@
SECRET_KEY = os.getenv("SECRET_KEY", "^0z5u6!dqjb%7s4&3nhg57q-h%)+_u*osk5k!uf-6n_0#2*p_4")

# 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 @@ -172,6 +172,11 @@
"handlers": ["null"],
"propagate": False,
},
"django.db.backends": {
"handlers": ["console"],
"level": "DEBUG" if production else os.getenv("LOG_LEVEL", "INFO"),
"propagate": False,
},
"requests_cache.policy.actions": {
"handlers": ["console"],
"level": "INFO",
Expand Down

0 comments on commit 8bcc7df

Please sign in to comment.