Template
## Summary - Closes #9. Port shop-gated buyer accounts (register/login/profile, password reset, order history), purchase-gated reviews, and Stripe customer ids. Cards stay on Stripe. - Slim public contact form to email + interest + message. Shipping tracking status, scan events, paste-in numbers, and EasyPost webhook when FEATURE_SHIPPING is on. - Add template-neutral `seed_demo` (generic SKUs, demo shoppers, guest orders, tracking stubs). Prod refused. `--reset` deletes tagged demo rows after invoices. ## Test plan - [ ] `cd site && uv run python manage.py test` (173 tests passed locally) - [ ] Shop on: `/account/register`, login, profile, password reset, claim guest orders by email - [ ] Shop off: `/account/` URLs absent; Sign in / Account links hidden - [ ] Checkout as logged-in buyer stores `Order.user` and Stripe customer id; product review only after paid purchase - [ ] Shipping on: portal paste-in tracking + EasyPost webhook updates status; shipping off: orders still work without tracking UI - [ ] `seed_demo` refused in prod; `--reset` rebuilds tagged catalog/shoppers without deleting staff invoices Reviewed-on: #10
18 lines
698 B
Python
18 lines
698 B
Python
from django.urls import path
|
|
|
|
from shop import views
|
|
|
|
app_name = "shop"
|
|
|
|
urlpatterns = [
|
|
path("", views.product_list, name="list"),
|
|
path("cart/", views.cart_view, name="cart"),
|
|
path("cart/add/<slug:slug>/", views.cart_add, name="cart_add"),
|
|
path("cart/update/<slug:slug>/", views.cart_update, name="cart_update"),
|
|
path("checkout/", views.checkout, name="checkout"),
|
|
path("checkout/<uuid:pk>/success/", views.checkout_success, name="checkout_success"),
|
|
path("checkout/<uuid:pk>/cancel/", views.checkout_cancel, name="checkout_cancel"),
|
|
path("<slug:slug>/review/", views.product_review, name="review"),
|
|
path("<slug:slug>/", views.product_detail, name="detail"),
|
|
]
|