-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,13 @@ | ||
# Use bearer:expected python_django_debug_mode_enabled to flag expected findings | ||
from django.conf import settings | ||
|
||
# bearer:expected python_django_debug_mode_enabled | ||
DEBUG = True | ||
|
||
def bad(): | ||
# bearer:expected python_django_debug_mode_enabled | ||
settings.configure(DEBUG=True) | ||
|
||
DEBUG = False | ||
|
||
def ok(): | ||
settings.configure(DEBUG=False) |