0

Does somebody know if it is possible to add the following two strings together, so that django reads it as one url?

Django template:

src="{% static 'post_it/media/post_images/' + '{{ post.image_name }}' %}"

Thanks.

Flux
  • 9,805
  • 5
  • 46
  • 92
Jake
  • 57
  • 3
  • 9
  • Please show `post` model definition. And settings related to static and media files. – Ivan Starostin Mar 04 '20 at 06:20
  • Does this answer your question? [django 1.5 - How to use variables inside static tag](https://stackoverflow.com/questions/16655851/django-1-5-how-to-use-variables-inside-static-tag) – Pratyush Verma Mar 04 '20 at 06:27

0 Answers0