Closed jamestonkin closed 7 years ago
Created view to show individual categories with all products in that category.
Ready
Shows a view for each category individually and shows all products for the category. Added links to the categories on the All Categories view.
12
modified: website/models.py modified: website/templates/product/category_list.html modified: website/templates/single_category.html modified: website/urls.py modified: website/views/single_category.py modified: website/tests.py
./damnit_django.sh python manage.py runserver
./damnit_django.sh
python manage.py runserver
test_category_view_returns_correct_products
Fail/ Pass Pass (x3)
python manage.py test
Passing tests are the best!
🎈 🍰
1. TITLE:
Created view to show individual categories with all products in that category.
2. STATUS:
Ready
3. DESCRIPTION:
Shows a view for each category individually and shows all products for the category. Added links to the categories on the All Categories view.
4. RELATED TICKETS:
12
5. FILES CHANGED:
modified: website/models.py modified: website/templates/product/category_list.html modified: website/templates/single_category.html modified: website/urls.py modified: website/views/single_category.py modified: website/tests.py
6. STEPS TO RUN PROJECT:
./damnit_django.sh
python manage.py runserver
8. TESTING THE CODE:
Name of test
test_category_view_returns_correct_products
Fail/ Pass Pass (x3)
How to run in command line
python manage.py test
For reference: Bangazon Employee Handbook: Pull Requests