- Fork and clone this repository or you can continue workig on your shop task.
- Create a virtual environment.
- Install the requirements in
requirements.txt
.
- In your models file, create a relation so that every category has multiple items and every item belongs to one category.
- Don't forget to
makemigrations
andmigrate
.
- In your views file, fix your context dictionary so that you're also sending the category name of every item.
- Fix your
item-list.html
to show the item's category and image. - Fix your form so that the user can choose a category when creating an item.
- In your models file, create a relation so that every item has multiple comments and every comment belongs to one item.
- In the
item-detail.html
page, list all the comments of this item.