Home > OS >  Can't get the picture to show in django
Can't get the picture to show in django

Time:06-20

<img
          
          alt="Responsive image"
          src="{% static 'product.image.url' %}"
        />

Cant get the picture to show on the web page.

CodePudding user response:

You don't need static.

<img 
          alt="Responsive image"
          src="{{ product.image.url }}"
        />

CodePudding user response:

I am not sure but did you add {% load static %} in the file.

  • Related