How earuvateja/django-project works
This is a Django food-ordering application: customers discover restaurants and menus, manage a cart, place an order, and pay; users can also register and manage delivery addresses. The main runtime is split into REST API views, serializers, and persistent domain models, with some traditional Django views alongside the APIs. The graph preserves those domain stages and the documented Razorpay flow. Several connections are supported only by the source index or excerpts; unsampled routing and implementation details are not inferred.
Main entry points: payments/api_views.py Payment API · orders/api_views.py Order API · users/api_views.py User API · restaurants/api_views.py Restaurant and Menu API
Components 18
Accounts
- User API
users/api_views.py - User Serializers
users/serializers.py - Users and Addresses
users/models.py
Restaurant Catalog
- Restaurant and Menu API
restaurants/api_views.py - Catalog Serializers
restaurants/api_serializers.py - Restaurants and Menu
restaurants/models.py
Cart
- Cart API
cart/api_views.py - Cart Serializers
cart/api_serializers.py - Cart Records
cart/models.py
Orders
- Order API
orders/api_views.py - Order Pages
orders/views.py - Order Serializers
orders/api_serializers.py - Order Records
orders/models.py
Payments
- Payment API
payments/api_views.py - Payment Serializers
payments/api_serializers.py - Payment Records
payments/models.py
Other components
- Customer
- Razorpay
Connections 23
- Customer → User API: manages account
users/api_views.py - User API → User Serializers: validates data
users/api_views.py - User API → Users and Addresses: reads and writes
users/api_views.py - Customer → Restaurant and Menu API: browses catalog
restaurants/api_views.py - Restaurant and Menu API → Catalog Serializers: serializes results
restaurants/api_views.py - Restaurant and Menu API → Restaurants and Menu: queries catalog
restaurants/api_views.py - Customer → Cart API: manages cart
cart/api_views.py - Cart API → Cart Serializers: validates and renders
cart/api_views.py - Cart API → Cart Records: reads and writes
cart/api_views.py - Cart Serializers → Restaurants and Menu: resolves menu items
cart/api_serializers.py - Customer → Order API: places order
- Order API → Cart Records: reads cart items
orders/api_views.py - Order API → Order Serializers: uses serializers
orders/api_views.py - Order API → Order Records: creates order
orders/api_views.py - Order API → Restaurants and Menu: checks menu items
- Customer → Order Pages: uses order pages
orders/views.py - Order Pages → Order Records: queries orders
orders/views.py - Customer → Payment API: starts payment
payments/api_views.py - Payment API → Payment Serializers: validates callback
payments/api_views.py - Payment API → Order Records: loads and updates order
payments/api_views.py - Payment API → Payment Records: persists payment
payments/api_views.py - Payment API → Cart Records: clears cart
payments/api_views.py - Payment API → Razorpay: creates and verifies payment
payments/api_views.py