1π
β
The reason why you get the message: "Product matching query does not exist."
Is because of the code: "product_obj = Product.objects.get(id=product_id)"
There is no row in the model Product with a ID = 1. You first need to make 2 Product items before you can retrieve a product with ID 1, by the way its not the best way to retrieve a object right by its ID unless you know what product has ID 1.
π€user14628590
Source:stackexchange.com