debug
Return context variables helpful for debugging.
def debug(
request: HttpRequest
) - > dict
Return context variables helpful for debugging.
Parameters
| Name | Type | Description |
|---|---|---|
| request | HttpRequest | The Django request object used to verify if the remote address is within the configured internal IPs. |
Returns
| Type | Description |
|---|---|
dict | A dictionary containing a boolean 'debug' flag and a lazy-evaluated list of SQL queries executed across all database connections if the environment is in debug mode and the request originates from an internal IP. |