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

- 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:
2026-04-07 23:09:19 +02:00
parent 5c05a91bd2
commit 921cea9044
8 changed files with 67 additions and 4 deletions

View File

@@ -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
})