Задать вопрос

Тел: +7 965 3737 888

485

Просмотров

0

Ответов

Use MEDIA_URL in 500 error page

The default server_error view uses Context instead of RequestContext. If you were depending on a context processor to make MEDIA_URL available in your templates, your 500.html template will not render with the correct image paths. This handler adds MEDIA_URL (and nothing else) back to the context that is sent to the template.

Вопрос полезен? Да0/Нет0
file_4001.py(415.0б)
None