Closed mozillazg closed 7 years ago
If I am not mistaken, the threading.local is based on thread id to store data, but django + gunicorn + gevent may only one thread.
threading.local
django + gunicorn + gevent
If you monkey patch the application, Gevent's threading.local will be used, in which case everything will work.
@edevil Thanks for your explanation!
If I am not mistaken, the
threading.local
is based on thread id to store data, butdjango + gunicorn + gevent
may only one thread.