All checks were successful
Build and Push Docker Image / build (push) Successful in 50s
- Added `Order` and `OrderItem` models with migrations for managing orders and their details - Created `CheckoutForm` for validating order data and customer information - Built templates for order confirmation, checkout success, and emails (HTML and plain text) - Added logic for email notifications upon successful order placement - Enhanced shopping cart template with checkout panel integration - Updated styles and JavaScript for streamlined checkout UX - Refactored cart view to support item summaries and final totals during checkout
16 lines
447 B
Python
16 lines
447 B
Python
|
|
from django.urls import path
|
|
|
|
from orders import views
|
|
|
|
app_name = "orders"
|
|
|
|
urlpatterns = [
|
|
path("cart/", views.cart, name="cart"),
|
|
path("cart/add/", views.add, name="add"),
|
|
path("cart/remove/", views.remove, name="remove"),
|
|
path("cart/update-quantity/", views.update_quantity, name="update_quantity"),
|
|
path("checkout/", views.checkout, name="checkout"),
|
|
path("success/<int:order_id>/", views.success, name="success"),
|
|
]
|