A modular, multi-store Django e-commerce platform with products, carts, orders, payments, discounts, and analytics.
- ✅ Multi-store / vendor support
- ✅ Product catalog with images & variants
- ✅ Cart & checkout workflow
- ✅ Discounts, promo codes & returns
- ✅ Payment gateway integration
- ✅ Event analytics for user behavior
📦 Project Structure
onlineshop/
├── accounts/
├── products/
├── cart/
├── orders/
├── payments/
├── discounts/
├── returns/
├── stores/
├── analytics/
├── templates/
└── staticfiles/
⚡ Installation
# Clone repo
git clone https://github.com/username/onlineshop.git
cd onlineshop
# Create virtualenv
python -m venv venv
source venv/bin/activate # Linux/macOS
venv\Scripts\activate # Windows
# Install dependencies
pip install -r requirements.txt
# Run migrations
python manage.py migrate
# Start server
python manage.py runserver🛠 Usage
- Browse products:
/products/ - Add to cart:
/cart/ - Checkout & payment:
/orders/&/payments/ - Apply discount codes:
/discounts/ - Return requests:
/returns/ - Store management:
/stores/ - Analytics dashboard:
/analytics/
🔧 Configuration
- Settings:
onlineshop/settings.py(split dev/prod recommended) - Static & media:
STATICFILES_DIRS&MEDIA_ROOT - Payment gateways: Configure keys in environment variables
- Database: SQLite for dev, switch to Postgres/MySQL for production
📚 Contributing
- Fork the repo
- Create a feature branch (
git checkout -b feature/YourFeature) - Commit changes (
git commit -m 'Add feature') - Push branch (
git push origin feature/YourFeature) - Open a Pull Request
📄 License
This project is licensed under the MIT License. See LICENSE for details.
✨ Built with ❤️ using Django & Python