[Django]-How to test a python eval statement in UWSGI application's ini config?

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

Leave a comment