Skip to content

Tag: django-templates

Implementing JS in Django templates

I have a list of ingredients, for every ingredient, I would like to give the option to delete the current ingredient via using a popup that asks the user “are you sure they want to delete this?” If confirmed, I want that ingredient to be deleted. Currently, no matter which ingredient I choose to d…

Read More js in django for loop

I try to apply this post to integrate read more/read less JS into a django template. I want to limit my post app. 200 characters and providing the user the option to Read More. This script seems to work fine… not so much in my case. It displays the Read More option but once clicked no event it triggered…