Relative Content

Tag Archive for djangodjango-modelsdjango-viewsdjango-templates

Django add to cart not working with product variation

I am building an e-commerce website where both products with variations and products without variation can be sold. So I have a cart view which adds a product to a cart and creates a cart instance, but it is not working now that I have modified it for products with variation. So if a product has variations, eg colors and sizes, users can select the variations, eg red and XL, and the selected variations show up on this section of product_detail.html:

Django messaging functionality not working

So I’m trying to add messaging functionality to my e-commerce website, where buyers can message sellers and sellers can message buyers once the buyer has purchased something from them (haven’t written the code for that yet, just want basic messaging functionality out of the way). So this is what I’ve tried.

Django Project Stuck at Login Page

I’m very new to Django and I am trying to create an booking website. I want that after login it should redirect to my booking.html page, but instead, I had this login page always keep heading back to login page over and over again