Resolve Django Server Deployment Errors

Job ID: 39214530

Budget: ₹1,500 – ₹12,500 INR

? Project Title:
Fix Django Server Deployment Issue (502 Bad Gateway + Celery Crash)

? Project Description:
We are running a Django web application on an Ubuntu EC2 server with Nginx, Supervisor, and Celery. After a recent deployment (via git pull), the app is throwing a 502 Bad Gateway error and Celery has entered a FATAL state.

We need an experienced DevOps / Django backend expert to debug and fix the following:

? Tasks:
Fix 502 Bad Gateway (Django + Gunicorn not responding)
Restart and configure Supervisor for:
Django app (vendor_management_system)
Celery worker (vms_celery)
Ensure all Python packages are installed (openpyxl, sentry_sdk, etc.)
Validate requirements.txt matches actual dependencies
Clean logs and ensure Nginx ↔ Gunicorn ↔ Supervisor ↔ Django all work smoothly
Optional: Write a simple deploy.sh script for future safe deployments
? Tech Stack:
Backend: Django, Celery
Server: Ubuntu EC2, Nginx, Supervisor
Python: 3.10
Logs: Supervisor + journalctl
GitHub-based deployment
✅ Deliverables:
Functional site with no 502 error
Working Celery worker
Proper logging and restartable services via Supervisor
Deployment checklist or bash script
Related categories: Python System Admin Linux Django Amazon Web Services