Skip to content

Commit 5279a90

Browse files
authored
Dev: Default RTD_DJANGO_DEBUG to False if not set (#11154)
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 <[email protected]>
1 parent ac518c7 commit 5279a90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readthedocs/settings/docker_compose.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class DockerBaseSettings(CommunityBaseSettings):
88

99
"""Settings for local development with Docker"""
1010

11-
DEBUG = bool(os.environ.get("RTD_DJANGO_DEBUG", True))
11+
DEBUG = bool(os.environ.get("RTD_DJANGO_DEBUG", False))
1212

1313
DOCKER_ENABLE = True
1414
RTD_DOCKER_COMPOSE = True

0 commit comments

Comments
 (0)