Kaynağa Gözat

Always disable debug in production

Jake Howard 2 yıl önce
ebeveyn
işleme
62df6b2876
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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: