Django crashes when I load a template with a 300,000+ character URI in it

I've put a data:image URI into my django template file (Jinja 2), and when I try to load the page that has this template, django crashes with no error messages.

The URI is more than 300,000 characters long. How can I put this image in the page without the site crashing?

Вернуться на верх