3👍
✅
Django runserver spawns a limited amount of workers to handle your requests. Just enough to make your app running for development in most cases.
Unfortunately, as Django handles requests in those workers, spawning new threads for camera feeds just won’t work… Worker threads will still wait for those newly spawned threads, so you won’t be able to parallelize it that way.
A solution for that is to use Gunicorn or uWSGI to spawn more workers, so all camera feeds can be handled. Another solution is to use something asynchronous or just delegate camera feeds to HTTP server like nginx or apache.
Source:stackexchange.com