2020-06-30 12:49:37 +02:00
|
|
|
include::../description.adoc[]
|
|
|
|
|
|
|
|
include::../ask-yourself.adoc[]
|
|
|
|
|
|
|
|
include::../recommended.adoc[]
|
|
|
|
|
|
|
|
== Sensitive Code Example
|
|
|
|
|
2023-01-09 15:29:41 +01:00
|
|
|
[source,python]
|
2020-06-30 12:49:37 +02:00
|
|
|
----
|
|
|
|
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
|
|
|
|
----
|
|
|
|
|
2023-01-09 15:29:41 +01:00
|
|
|
Django's "settings.py" or "global_settings.py" configuration file:
|
2020-06-30 14:49:38 +02:00
|
|
|
|
2023-01-09 15:29:41 +01:00
|
|
|
[source,python]
|
2020-06-30 12:49:37 +02:00
|
|
|
----
|
|
|
|
# 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[]
|
2021-06-02 20:44:38 +02:00
|
|
|
|
2021-06-03 09:05:38 +02:00
|
|
|
ifdef::env-github,rspecator-view[]
|
2021-09-20 15:38:42 +02:00
|
|
|
|
|
|
|
'''
|
|
|
|
== Implementation Specification
|
|
|
|
(visible only on this page)
|
|
|
|
|
|
|
|
include::../message.adoc[]
|
|
|
|
|
2021-06-08 15:52:13 +02:00
|
|
|
'''
|
2021-06-02 20:44:38 +02:00
|
|
|
== Comments And Links
|
|
|
|
(visible only on this page)
|
|
|
|
|
|
|
|
include::../comments-and-links.adoc[]
|
2021-06-03 09:05:38 +02:00
|
|
|
endif::env-github,rspecator-view[]
|