1
def iq(request):
    data={
        "image": "main/img/fff.png"
    }
    return render(request, 'main/iq1.html', data)
<img src="{% static {{ image }} %}" alt="Лого">

Как передать {{ }} в {% %}?

2
  • 2
    Просто {% static image %}
    – andreymal
    24 дек 2020 в 15:52
  • img src="{{ data.image }}"
    – Jack_oS
    24 дек 2020 в 16:03

0

Ваш ответ

By clicking “Отправить ответ”, you agree to our terms of service and acknowledge you have read our privacy policy.

Посмотрите другие вопросы с метками или задайте свой вопрос.