Explorar el Código

Always disable debug in production

Jake Howard hace 2 años
padre
commit
62df6b2876
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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: