class Product(models.Model):
name = models.CharField(max_length=50)
slug = models.SlugField()
unit_price = models.DecimalField(max_digits=5, decimal_places=2)
I'am newbie to Django. How to design shopping basket using session? (ask for a general "algorithm" or some example code)
cart
in session and not the product. The link I gave you features very simple code patterns. I suggest you take a look at it. Also, in order to design you DB, you have to make up your mind about the features you need. You question is quite vague at this point. – Hamner