瀏覽代碼

Always disable debug in production

Jake Howard 2 年之前
父節點
當前提交
62df6b2876
共有 1 個文件被更改,包括 1 次插入1 次删除
  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: