Skip to main content

static

Add static-related context variables to the context.

def static(
request: HttpRequest
) - > dict

Add static-related context variables to the context.

Parameters

NameTypeDescription
requestHttpRequestThe current HTTP request object used to determine context

Returns

TypeDescription
dictA dictionary containing the STATIC_URL setting, which provides the base URL for serving static files