I have single html page with dynamic images from database in Django. I also have a modal in the same page set to invisible and opens when image is clicked.
My intension is when I click on any image it should open a html model with the clicked image and its description text from db.
How do I display data of the current clicked image and its description.
I have tried to pass {{profile.image.url}} but this gives one information on click to all images.
I didn't have to give sample code on this.