1👍
✅
I’d recommend implementing some kind of IPC with the middleware you have. But if it’s a one-off project, you can just launch the thread (launch_recognition) from wsgi.py somewhere. This will ensure it all runs in the same process.
Source:stackexchange.com