4๐
โ
Iโm late to the party, but your problem was that you had wsgi-file
option that made eval
useless. (Same goes for module
option โ this is the case I had.)
So, to make uWSGI wrap any WSGI application with a middleware, you just had to remove the offending options. I.e.:
; DON'T USE THIS: wsgi-file=myproject/wsgi.py
; NEITHER THIS: module=myproject.wsgi
eval=import myproject.wsgi, myfancymw; application = myfancymw.wrap(myproject.wsgi.application)
๐คdrdaeman
-1๐
It sounds like there is a lot going on here. You might want to open a ticket with newrelic at
https://support.newrelic.com so they can investigate what is happening in your setup.
๐คWalden
Source:stackexchange.com