From 557237b514519247fe825636572daae3d1825323 Mon Sep 17 00:00:00 2001 From: Peter Hoyes Date: Mon, 26 Feb 2024 13:02:05 +0000 Subject: [PATCH] Dev: Default RTD_DJANGO_DEBUG to False if not set With the docker compose settings file, it is currently necessary to explicitly set RTD_DJANGO_DEBUG to a false-y value to clear the DEBUG flag. Change the default value to False to make the setting more intuitive. The docker invoke script in common passes RTD_DJANGO_DEBUG=t by default so the effective default behavior is unchanged. Signed-off-by: Peter Hoyes --- readthedocs/settings/docker_compose.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readthedocs/settings/docker_compose.py b/readthedocs/settings/docker_compose.py index 84162f8e1bf..410477cdecf 100644 --- a/readthedocs/settings/docker_compose.py +++ b/readthedocs/settings/docker_compose.py @@ -8,7 +8,7 @@ class DockerBaseSettings(CommunityBaseSettings): """Settings for local development with Docker""" - DEBUG = bool(os.environ.get("RTD_DJANGO_DEBUG", True)) + DEBUG = bool(os.environ.get("RTD_DJANGO_DEBUG", False)) DOCKER_ENABLE = True RTD_DOCKER_COMPOSE = True