Skip to content

Dev: Default RTD_DJANGO_DEBUG to False if not set #11154

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 27, 2024

Conversation

hoyes
Copy link
Contributor

@hoyes hoyes commented Feb 26, 2024

As suggested in readthedocs/common#202 (comment):

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.

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]>
@hoyes hoyes requested a review from a team as a code owner February 26, 2024 13:16
@hoyes hoyes requested a review from humitos February 26, 2024 13:16
Copy link
Member

@humitos humitos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 🙏🏼

@humitos humitos merged commit 5279a90 into readthedocs:main Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants