การ deploy Django ไปยัง production เกี่ยวข้องกับการรันมันหลัง WSGI/ASGI server และ web server ที่เหมาะสม, การ serve static file อย่างถูกต้อง, การรักษาความปลอดภัยของ settings และการจัดการฐานข้อมูล — แตกต่างอย่างมากจาก 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).
