2
0
Эх сурвалжийг харах

Always disable debug in production

Jake Howard 2 жил өмнө
parent
commit
62df6b2876

+ 1 - 1
bakerydemo/settings/production.py

@@ -7,7 +7,7 @@ import django_cache_url
 
 from .base import *  # noqa: F403
 
-DEBUG = os.getenv("DJANGO_DEBUG", "off") == "on"
+DEBUG = False
 
 # DJANGO_SECRET_KEY *should* be specified in the environment. If it's not, generate an ephemeral key.
 if "DJANGO_SECRET_KEY" in os.environ: