generated from westfarn/web_django_template
Ship Print Forge shop site (colors, photos, 3D viewer) (#2)
## Summary - Rebrand the Django client template as Print Forge (`client_site` → `print_forge`) with shop + shipping enabled. - Product listings support multiple photos, color variants (shared price/description/STL, per-color stock and photos), and a photo-first / 3D-second gallery. - Public pages use 3D printer / printed-toy photography instead of leftover t-shirt mockups; beta CI deploys on `master`. Closes #1 Infra: [server-infra#27](ai_ml_operations/server-infra#27) (easy deploy beta). ## Test plan - [ ] Product page shows photo first, 3D model second; color swatches swap photos and stock - [ ] Portal can upload multiple photos and per-color qty/images; STL stays shared - [ ] Public home/about/gallery have no t-shirt mockups - [ ] `manage.py test` passes - [ ] After server-infra#27: beta deploy to `print-forge-preview.aimloperations.com` Reviewed-on: #2
This commit was merged in pull request #2.
This commit is contained in:
@@ -16,19 +16,19 @@ fi
|
||||
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
||||
cd "$ROOT"
|
||||
|
||||
if [[ "$SLUG" == "client_site" ]]; then
|
||||
echo "slug is already client_site — branding defaults only."
|
||||
if [[ "$SLUG" == "print_forge" ]]; then
|
||||
echo "slug is already print_forge — branding defaults only."
|
||||
else
|
||||
echo "Renaming package client_site → $SLUG"
|
||||
if [[ -d site/client_site ]]; then
|
||||
mv site/client_site "site/$SLUG"
|
||||
echo "Renaming package print_forge → $SLUG"
|
||||
if [[ -d site/print_forge ]]; then
|
||||
mv site/print_forge "site/$SLUG"
|
||||
fi
|
||||
grep -rl 'client_site' \
|
||||
grep -rl 'print_forge' \
|
||||
--exclude-dir=.git --exclude-dir=.venv --exclude-dir=__pycache__ \
|
||||
--exclude='*.png' --exclude='*.jpg' --exclude='*.woff*' --exclude='*.eot' \
|
||||
--exclude='uv.lock' . \
|
||||
| while read -r f; do
|
||||
sed -i "s/client_site/${SLUG}/g" "$f"
|
||||
sed -i "s/print_forge/${SLUG}/g" "$f"
|
||||
done
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user