Django ਨੂੰ production ਵਿੱਚ ਤਾਈਨਾਤ ਕਰਨਾ ਇਸ ਵਿੱਚ ਸ਼ਾਮਿਲ ਹੈ ਕਿ ਇਸ ਨੂੰ ਇੱਕ ਸਹੀ WSGI/ASGI server ਅਤੇ web server ਦੇ ਪਿੱਛੇ ਚਲਾਉਣਾ, static files ਨੂੰ ਸਹੀ ਢੰਗ ਨਾਲ serve ਕਰਨਾ, settings ਨੂੰ secure ਕਰਨਾ, ਅਤੇ database ਦਾ ਪ੍ਰਬੰਧਨ ਕਰਨਾ — ਜੋ ਬਿਲਤ-ਇਨ development server ਤੋਂ ਬਿਲਕੁਲ ਵੱਖਰਾ ਹੈ (ਜਿਸ ਨੂੰ production ਲਈ ਨਹੀਂ ਹੈ)।
Production stack
Client → NGINX (web server) → GUNICORN (WSGI app server) → DJANGO
│ (runs your Python app, multiple workers)
└─ serves static/media files directly (efficient)
❌ NEVER use `python manage.py runserver` in production — it's single-threaded,
insecure, and not built for load. Use Gunicorn (WSGI) or Uvicorn (ASGI for async).
