cbe06e9c8ffe8b888aedb1780087c4e84ae2a0aa
- GET /api/v1/partners/stats/ - total, active, pendingKyc, highRisk counts - GET /api/v1/partners/ - paginated list with status/kyc/type/search filters - GET /api/v1/partners/:id/ - full detail with events, kycDocuments, dealTerms, ledger - PATCH /api/v1/partners/:id/status/ - suspend/activate partner - POST /api/v1/partners/:id/kyc/review/ - approve/reject KYC with reason Helpers: _serialize_partner(), _partner_kyc_docs() Status/KYC/type mapping: backend snake_case to frontend capitalised values Risk score derived from kyc_compliance_status (high_risk=80, approved=5, etc.) All views IsAuthenticated, models imported inside methods
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
91.8%
HTML
8.1%