I am trying to add or edit the form in django by creating customized form using html and css.
Now it works fine for add product form but when i trying edit one of field in the form,image url does not passing to input tag and when i submit the form it says image tag is empty.
How to recitfy it?
`
Cake image
<code> {% if Product.product_img %}
<img src="{{ Product.product_img }}" alt="Product Image">
{% endif %}
<input type="file" name="product_img" accept="image/*" id="product_img">
</div>`
</code>
<code> {% if Product.product_img %}
<img src="{{ Product.product_img }}" alt="Product Image">
{% endif %}
<input type="file" name="product_img" accept="image/*" id="product_img">
</div>`
</code>
{% if Product.product_img %}
<img src="{{ Product.product_img }}" alt="Product Image">
{% endif %}
<input type="file" name="product_img" accept="image/*" id="product_img">
</div>`