[Answered ]-Python class variable is None despite being set

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.

Leave a comment