b60d03142c62d4386c8a9b840a279356c35320ea
Phase 1 - JWT Auth Foundation: - Replace token auth with djangorestframework-simplejwt - POST /api/v1/admin/auth/login/ - returns access + refresh JWT - POST /api/v1/auth/refresh/ - JWT refresh - GET /api/v1/auth/me/ - current admin profile - GET /api/v1/health/ - DB health check - Add ledger app to INSTALLED_APPS Phase 2 - Dashboard Metrics API: - GET /api/v1/dashboard/metrics/ - revenue, partners, events, tickets - GET /api/v1/dashboard/revenue/ - 7-day revenue vs payouts chart data - GET /api/v1/dashboard/activity/ - last 10 platform events feed - GET /api/v1/dashboard/actions/ - KYC queue, flagged events, pending payouts DB Indexes (dashboard query optimisation): - RazorpayTransaction: status, captured_at - Partner: status, kyc_compliance_status - Event: event_status, start_date, created_date - Booking: created_date - PaymentTransaction: payment_type, payment_transaction_status, payment_transaction_date Infra: - Add Dockerfile for eventify-backend container - Add simplejwt to requirements.txt - All 4 dashboard views use IsAuthenticated permission class
Eventify - Django
This repository contains a production-oriented Django project skeleton for the Eventify application.
Features
- Custom
Usermodel - EventType (categories), Event, EventImages models
- CRUD for EventType, Event, and Users
- Bootstrap-based templates and navigation
- Settings prepared to use environment variables for production
Quick start (development)
- Create a virtualenv and activate it
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
- Run migrations and create superuser
python manage.py migrate
python manage.py createsuperuser
python manage.py runserver
Production notes
- Set
DJANGO_SECRET_KEY,DJANGO_DEBUG, andDJANGO_ALLOWED_HOSTSenvironment variables - Collect static files with
python manage.py collectstatic - Serve via uWSGI/gunicorn + nginx or any WSGI server
Description
Languages
Python
92.1%
HTML
7.8%