A Django-based application for managing cake orders with bot integration.
- Order Management: Create and track cake orders
- Cake Catalog: Browse and manage cake products with categories and sizes
- Ingredient Tracking: Track ingredients used in cakes
- Bot Integration: Automated bot for order processing
- User Addresses: Store and manage customer delivery addresses
- Order Status Tracking: Monitor order status from placement to delivery
cake_bot/
├── cake/ # Main application
│ ├── models.py # Database models (Order, Cake, Category, Size, etc.)
│ ├── views.py # View handlers
│ ├── bot.py # Bot functionality
│ ├── admin.py # Django admin configuration
│ ├── utils.py # Utility functions
│ ├── tests.py # Unit tests
│ └── migrations/ # Database migrations
├── cake_bot/ # Django project settings
│ ├── settings.py # Project settings
│ ├── urls.py # URL routing
│ ├── asgi.py # ASGI configuration
│ ├── wsgi.py # WSGI configuration
├── manage.py # Django management script
└── media/ # Media files storage
- Clone the repository
- Create a virtual environment:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
- Install dependencies:
pip install -r requirements.txt
- Run migrations:
python manage.py migrate
- Create a superuser:
python manage.py createsuperuser
- Start the development server:
python manage.py runserver
- Cake: Cake products with size and ingredients
- CakeCategory: Categories for organizing cakes
- Size: Available cake sizes
- Ingredient: Cake ingredients inventory
- Order: Customer orders with status tracking
- OrderElement: Individual items in an order
Access the Django admin interface at http://localhost:8000/admin to manage cakes, orders, and other data.