feat: add sidebar and item list to catalog page, enable DEBUG mode for development
All checks were successful
Build and Push Docker Image / build (push) Successful in 24s
All checks were successful
Build and Push Docker Image / build (push) Successful in 24s
- Created `side-bar.html` and `item-list.html` fragments for catalog page layout - Updated `catalog/index.html` to include sidebar and item list templates - Added styles for catalog layout in `catalog.css` - Enabled `DEBUG=True` in settings for local development - Adjusted CSS in shipping and services for consistent spacing
This commit is contained in:
@@ -3,7 +3,7 @@ from dataclasses import dataclass
|
||||
from django.http import HttpRequest, HttpResponse, Http404
|
||||
from django.shortcuts import render, redirect
|
||||
|
||||
from items.models import Category
|
||||
from items.models import Category, Item
|
||||
|
||||
|
||||
# Create your views here.
|
||||
@@ -25,5 +25,6 @@ def index(request: HttpRequest, category: str | None = None) -> HttpResponse:
|
||||
|
||||
return render(request, 'catalog/index.html', {
|
||||
'categories': Category.objects.all(),
|
||||
'items': Item.objects.all(),
|
||||
'selected_category': selected_category
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user