Skip to content

Disable Django Debug Mode#107

Open
pixeebot[bot] wants to merge 1 commit into
developfrom
pixeebot/drip-2025-08-14-pixee-python/django-debug-flag-on
Open

Disable Django Debug Mode#107
pixeebot[bot] wants to merge 1 commit into
developfrom
pixeebot/drip-2025-08-14-pixee-python/django-debug-flag-on

Conversation

@pixeebot

@pixeebot pixeebot Bot commented Aug 14, 2025

Copy link
Copy Markdown

This codemod will flip Django's DEBUG flag to False if it's True on the settings.py file within Django's default directory structure.

Having the debug flag on may result in sensitive information exposure. When an exception occurs while the DEBUG flag in on, it will dump metadata of your environment, including the settings module. The attacker can purposefully request a non-existing url to trigger an exception and gather information about your system.

- DEBUG = True
+ DEBUG = False
More reading

🧚🤖 Powered by Pixeebot

Feedback | Community | Docs | Codemod ID: pixee:python/django-debug-flag-on

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.

0 participants