Stand up Print Forge as a 3D-printed toy shop with color variants and printer photography.

Replaces the client_site template branding, adds shop/shipping, and points beta CI at master for easy deploy.

Closes #1
This commit is contained in:
2026-09-06 08:28:04 -05:00
parent 8a97e3fbe2
commit b2029b6c0f
336 changed files with 9241 additions and 2537 deletions
+16 -1
View File
@@ -29,7 +29,18 @@ def _public_site_base(request) -> str:
def home(request):
return render(request, "public/home.html")
featured = []
from django.apps import apps as django_apps
if django_apps.is_installed("shop"):
from shop.models import Product
featured = list(
Product.objects.filter(is_published=True)
.select_related("image")
.prefetch_related("colors")[:6]
)
return render(request, "public/home.html", {"featured_products": featured})
def about(request):
@@ -70,6 +81,10 @@ def sitemap_xml(request):
from django.apps import apps as django_apps
if django_apps.is_installed("blog"):
paths.append(("blog:list", "0.7", "weekly"))
if django_apps.is_installed("shop"):
paths.append(("shop:list", "0.8", "weekly"))
if django_apps.is_installed("events"):
paths.append(("events:list", "0.8", "weekly"))
urls = []
for name, priority, changefreq in paths:
path = reverse(name)