[Django]-Django adds %2f in place of the / in the template for an image field

0👍

Django automatically html escapes all variables in templates. In order to insert the value of a variable without escaping you should use the safe filter to tell django the value does not need to be auto-escaped like so:

{{ object.image.url|safe }}
👤Jiaaro

Leave a comment