From 56daad6c3bcf53413f9c309bd761f4ef41ba0b32 Mon Sep 17 00:00:00 2001 From: Fazil Date: Sat, 21 Sep 2024 19:37:31 +0700 Subject: [PATCH] feat: set up environtment production --- playbox/settings.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/playbox/settings.py b/playbox/settings.py index 308b75a..8e3616f 100644 --- a/playbox/settings.py +++ b/playbox/settings.py @@ -24,7 +24,8 @@ SECRET_KEY = 'django-insecure-rtszg1xv0ern2(chdammhp42s0jg#tjfeko=s=c*q6##%mhe=9' # SECURITY WARNING: don't run with debug turned on in production! -DEBUG = True +PRODUCTION = os.getenv("PRODUCTION", False) +DEBUG = not PRODUCTION ALLOWED_HOSTS = ["localhost", "127.0.0.1", "muhammad-fazil31-playbox.pbp.cs.ui.ac.id"]