47 lines
1.0 KiB
Plaintext
47 lines
1.0 KiB
Plaintext
include::../description.adoc[]
|
|
|
|
include::../ask-yourself.adoc[]
|
|
|
|
include::../recommended.adoc[]
|
|
|
|
== Sensitive Code Example
|
|
|
|
[source,python]
|
|
----
|
|
from django.conf import settings
|
|
|
|
settings.configure(DEBUG=True) # Sensitive when set to True
|
|
settings.configure(DEBUG_PROPAGATE_EXCEPTIONS=True) # Sensitive when set to True
|
|
|
|
def custom_config(config):
|
|
settings.configure(default_settings=config, DEBUG=True) # Sensitive
|
|
----
|
|
|
|
Django's "settings.py" or "global_settings.py" configuration file:
|
|
|
|
[source,python]
|
|
----
|
|
# NOTE: The following code raises issues only if the file is named "settings.py" or "global_settings.py". This is the default
|
|
# name of Django configuration file
|
|
|
|
DEBUG = True # Sensitive
|
|
DEBUG_PROPAGATE_EXCEPTIONS = True # Sensitive
|
|
----
|
|
|
|
include::../see.adoc[]
|
|
|
|
ifdef::env-github,rspecator-view[]
|
|
|
|
'''
|
|
== Implementation Specification
|
|
(visible only on this page)
|
|
|
|
include::../message.adoc[]
|
|
|
|
'''
|
|
== Comments And Links
|
|
(visible only on this page)
|
|
|
|
include::../comments-and-links.adoc[]
|
|
endif::env-github,rspecator-view[]
|