Skip to main content

media

Add media-related context variables to the context.

def media(
request: HttpRequest
) - > dict

Add media-related context variables to the context.

Parameters

NameTypeDescription
requestHttpRequestThe current HTTP request object used to generate the context.

Returns

TypeDescription
dictA dictionary containing the MEDIA_URL setting, making it accessible within template contexts.