From d100c7b888f40ab31b4a8d31b19c71bdd4352662 Mon Sep 17 00:00:00 2001 From: meeb Date: Sun, 13 Dec 2020 21:51:58 +1100 Subject: [PATCH] add env toggle for django debugging --- tubesync/tubesync/local_settings.py.container | 1 + 1 file changed, 1 insertion(+) diff --git a/tubesync/tubesync/local_settings.py.container b/tubesync/tubesync/local_settings.py.container index 9b3acd5..f571b53 100644 --- a/tubesync/tubesync/local_settings.py.container +++ b/tubesync/tubesync/local_settings.py.container @@ -13,6 +13,7 @@ RANDOM_SECRET = hexlify(os.urandom(32)).decode() SECRET_KEY = str(os.getenv('DJANGO_SECRET_KEY', RANDOM_SECRET)) ALLOWED_HOSTS_STR = str(os.getenv('TUBESYNC_HOSTS', '127.0.0.1,localhost')) ALLOWED_HOSTS = ALLOWED_HOSTS_STR.split(',') +DEBUG = True if os.getenv('TUBESYNC_DEBUG', False) else False TIME_ZONE = os.getenv('TZ', 'UTC')