Pārlūkot izejas kodu

Always disable debug in production

Jake Howard 2 gadi atpakaļ
vecāks
revīzija
62df6b2876
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      bakerydemo/settings/production.py

+ 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: