/ecommerce-django

ecommerce website with django

Primary LanguagePython

ecommerce-django

learnings


2

  • get_or_create()
  • Used methods in Model
    • Due to foreignKey relation used other model method (like Product method in OrderItem)
    • Used other model method in model -in templates used other model field due to pk relation
    • modelname_set -Used image through method made more effective and error free
      • Used other model fields value in a model
      • Used property decorator on method in model
      • same use the views

3 -java script part

  • javascript added event listner on buttons
  • added CUSTOME-ATTRIBUTE on buttons through which we get the id and assigned action on that button