Fwd: Error while creating an ecommerce website :PLEASE HELP!

2021-06-23 Thread Parul.
-- Forwarded message - From: Parul. Date: Wed, Jun 23, 2021, 11:34 PM Subject: Error while creating an ecommerce website :PLEASE HELP! To: Hi, I am working on an ecommerce website. I am facing an error. Can anyone please help me solve this error. I am not able to fetch

Re: Error while creating an ecommerce website :PLEASE HELP!

2021-06-23 Thread Parul.
Hi, I tried to pass the id..but its not working I observed while debugging, the try catch block is not getting implemented... i tried to put some print statements there..but they are not getting printed The print statements in models.py -- new_or_get func() are working On Thu, Jun 24, 2021 at

Re: Error while creating an ecommerce website :PLEASE HELP!

2021-06-23 Thread Aadil Rashid
First pass Id as an argument along with request to that particular view function On Thu, 24 Jun, 2021, 12:06 AM Parul., wrote: > Hi , > > I am doing : product_obj=Product.objects.get(id=product_id) > in the cart_update function in views.py > > but when trying to print this object...

Re: Error while creating an ecommerce website :PLEASE HELP!

2021-06-23 Thread Parul.
Hi , I am doing : product_obj=Product.objects.get(id=product_id) in the cart_update function in views.py but when trying to print this object... i am not getting anything... is this function is not working? On Wed, Jun 23, 2021 at 11:38 PM Aadil Rashid wrote: > Pass I'd to the

Re: Error while creating an ecommerce website :PLEASE HELP!

2021-06-23 Thread Aadil Rashid
Pass I'd to the view you are you are using, And then get products thrid that I'd by simple ORM quriy Product = model name.objects.get(id=id) On Wed, 23 Jun, 2021, 11:35 PM Parul., wrote: > Hi, > I am working on an ecommerce website. I am facing an error. Can anyone > please help me solve this

Error while creating an ecommerce website :PLEASE HELP!

2021-06-23 Thread Parul.
Hi, I am working on an ecommerce website. I am facing an error. Can anyone please help me solve this error. I am not able to fetch the PRODUCT_ID 1. views.py (APP-CART) --- from django.shortcuts