[Fixed]-Unable to display ImageField within Django template

1👍

Use post.image.url instead of post.instance.image.url. Check the documentation.

ImageField inherits all the attributes of the FileField which includes url.

👤AKS

Leave a comment