نشر Django للإنتاج يتضمن تشغيله خلف خادم WSGI/ASGI مناسب وخادم ويب، خدمة الملفات الثابتة بشكل صحيح، تأمين الإعدادات، وإدارة قاعدة البيانات — مختلف تماماً عن خادم التطوير المدمج (الذي ليس للإنتاج).
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).
