media
Add media-related context variables to the context.
def media(
request: HttpRequest
) - > dict
Add media-related context variables to the context.
Parameters
| Name | Type | Description |
|---|---|---|
| request | HttpRequest | The current HTTP request object used to generate the context. |
Returns
| Type | Description |
|---|---|
dict | A dictionary containing the MEDIA_URL setting, making it accessible within template contexts. |