My team, The Undefined Variables, decided to make a sample ecommerce website for our Capstone/WOW Project. This is the models.py from the app. It’s only 54 Lines of code. More hours of frustration, debate went into those 54 lines than I ever possibly could have imagined. It still wasn’t perfect; I can look at this within a few seconds and see five things that I would want to change. But when working as a team we must make compromises and I often had to defer. I’m still quite proud of how it turned out. Check the whole project out here.
# Create your models here. classTag(models.Model): type = models.CharField(max_length=30)
def__str__(self): return self.type
# addressee indicates the recipient of the order not necessarily the person placing the order. classAddressee(models.Model): name = models.CharField(max_length=40) address = models.CharField(max_length=120) city = models.CharField(max_length=30) state = models.CharField(max_length=2) zipcode = models.CharField(max_length=10)