Skip to main content

debug

Return context variables helpful for debugging.

def debug(
request: HttpRequest
) - > dict

Return context variables helpful for debugging.

Parameters

NameTypeDescription
requestHttpRequestThe Django request object used to verify if the remote address is within the configured internal IPs.

Returns

TypeDescription
dictA 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.