Project Overview
The Coupon Store is a web-based e-commerce application built with Django that allows products to have unique, random coupon codes associated with them. Users can browse products, view coupon deals, and add products to their cart. Coupons are time-bound, making it a realistic solution for online promotions and discounts. The system is designed to be scalable, easy to maintain, and fully responsive using Bootstrap 5.
This project demonstrates CRUD operations, dynamic coupon generation, cart functionality, and front-end integration using modern UI practices.
Screenshots
Key Features
Product Management
Add, update, and delete products through the Django admin panel.
Each product can have an image and price.
Random Coupon Generation
Products can have unique random coupon codes generated.
Coupons are valid for a fixed number of days (configurable).
Coupon Validity
Only valid coupons are displayed to the user.
Expired coupons are automatically hidden.
Cart Functionality
Add products to the cart with quantity selection.
Subtotal and total calculation for cart items.
Responsive Design
Clean and modern interface using Bootstrap 5.
Works well on desktop, tablet, and mobile devices.
Admin Panel Integration
Easy management of products and coupons.
Admin can generate coupons with a single click.nt: pre-school website template, free landing page template, bootstrap template for school, responsive HTML project.
Technology Stack
TechnologyPurposePython 3.xBackend programming languageDjango 4.xWeb framework for building the backendSQLite / PostgreSQLDatabase for storing products, coupons, and cart items Bootstrap 5 Frontend CSS framework for responsive designHTML / CSS / JSFrontend structure and interactivityUUID / Random ModuleRandom coupon code generationDjango TemplatesRendering dynamic content on frontend
Functionality
1. User Side Functionality
- Product Browsing
- View all available products in a clean, responsive grid layout.
- Each product displays: name, price, image, and available coupon (if valid).
- Coupon Visibility
- Only valid coupons are shown on products.
- Expired coupons are automatically hidden from the product page.
- Add to Cart
- Users can add products to the cart with a specific quantity.
- Cart displays product name, quantity, subtotal, and total amount.
- Coupon Application in Cart
- Users can enter coupon codes (from product or global coupon) to apply discounts.
- The system validates coupon and calculates discounted total (percent/fixed).
- Responsive Design
- Mobile-friendly layout for browsing products and managing the cart.
- Interactive buttons and badges for coupons.
2. Admin Side Functionality
- Product Management
- Add, edit, and delete products.
- Upload images for each product.
- Coupon Generation
- Generate random coupons for each product.
- Set expiry automatically (e.g., 5 days from generation).
- Coupon Management
- View all coupons with expiry and status.
- Admin can mark coupon as active/inactive.
- Cart & Order Management (Optional)
- Admin can see cart items or orders (if extended to include checkout).
- Django Admin Integration
- Easy-to-use dashboard to manage products and coupons efficiently.
- List display, search, and actions for coupon generation.
Why Use This Project ?
E-commerce Ready: Demonstrates a mini e-commerce workflow with cart and products.
Promotions & Discounts: Ideal for learning and implementing coupon-based promotions.
Django Best Practices: Shows clean model design, reusable methods, and template rendering.
Portfolio-Friendly: Fully functional project suitable for showcasing in resumes or portfolios.
Customizable: Easily extendable for more features like user login, checkout, or global coupons.








