Tag start is not closed error occurred
<img class="img-responsive" src="{%static" images/{{photo.image}}"%}">
I wrote in the html file...
https://docs.djangoproject.com/en/1.10/howto/static-files/
I don't know what's wrong with it because I used the method of writing the official document.
How can I fix it?
{%}
contains {{}
.
How about writing one of the following?
<img class="img-responsive" src="{%static'images'%}/{{photo.image}}}">
or
<img class="img-responsive" src="{%static'images/'+photo.image%}">
© 2024 OneMinuteCode. All rights reserved.