Django – Adding text from dictionary in a static tag [closed]

Almost there, just need to move some brackets around:

<img src="{% static 'Image/Portfolio/' %}{{article.slug_title}}/{{article.imageFile}}.jpg">

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top