generated from westfarn/web_django_template
CI / test (pull_request) Successful in 35s
Shoppers can register, save shipping details, and view order history while cards stay on Stripe. EasyPost tracker updates (including numbers from Pirate Ship) and 1–5 star reviews are limited to buyers. The contact form now only asks for email and a message.
27 lines
737 B
Python
27 lines
737 B
Python
from django.apps import apps
|
|
from django.urls import path
|
|
|
|
from accounts import views
|
|
|
|
app_name = "account"
|
|
|
|
urlpatterns = [
|
|
path("", views.customer_home, name="home"),
|
|
path("login/", views.CustomerLoginView.as_view(), name="login"),
|
|
path("logout/", views.customer_logout, name="logout"),
|
|
path("register/", views.customer_register, name="register"),
|
|
path("profile/", views.customer_profile, name="profile"),
|
|
]
|
|
|
|
if apps.is_installed("shop"):
|
|
from shop import views as shop_views
|
|
|
|
urlpatterns += [
|
|
path("orders/", shop_views.account_order_list, name="orders"),
|
|
path(
|
|
"orders/<uuid:pk>/",
|
|
shop_views.account_order_detail,
|
|
name="order_detail",
|
|
),
|
|
]
|