---
title: "Discussion on \"Troubleshooting AJAX Cart Item Deletion in Django: Items Not Removing from Cart\" | Hashnode"
description: "Discussion on \"Troubleshooting AJAX Cart Item Deletion in Django: Items Not Removing from Cart\". I am getting problem during deleting product from cart In my cart.html:\n<button class=\"btn btn-sm btn-remove delete-item\" data-item=\"{{product_id}}\"><i class=\"fas fa-trash-alt\" ></i></button>\n\nThis is the delete button I created. Now also I created j..."
url: "https://hashnode.com/posts/troubleshooting-ajax-cart-item-deletion-in-django-items-not-removing-from-cart/65f7e37e0f701eee4b95b733"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Troubleshooting AJAX Cart Item Deletion in Django: Items Not Removing from Cart](https://sagarmoy.hashnode.dev/troubleshooting-ajax-cart-item-deletion-in-django-items-not-removing-from-cart?utm_source=hashnode&utm_medium=feed)

I am getting problem during deleting product from cart In my cart.html: <button class="btn btn-sm btn-remove delete-item" data-item="{{product\_id}}"><i class="fas fa-trash-alt" ></i></button> This is the delete button I created. Now also I created j...

Mar 18, 2024 · 3 min read · sagarmoy.hashnode.dev  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#django](https://hashnode.com/tag/django)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#django-views](https://hashnode.com/tag/django-views)
-   [#html](https://hashnode.com/tag/html)

## Written by

[Sagarmoy Sadhukhan](https://hashnode.com/@sagarmoy)

@sagarmoy

  
[View profile](https://hashnode.com/@sagarmoy)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
