6

UWSGI, Django, nginx redirect issue - causes 405 Error

view full story
linux-howto

http://serverfault.com – I'm running django via uwsgi and nginx, and whenever my app sends a redirect header, nginx displays a 405 error. The app works fine with apache, runserver or gunicorn, and uwsgi serves it normally except for the redirect problem. I'm running uwsgi like so: uwsgi --master --http-socket :8082 --wsgi-file /var/django/mysite/apache/live.wsgi --touch-reload /var/django/mysite/apache/live.wsgi directory=/var/django/mysite/ My live.wsgi file looks like this: import os, sys PROJECT_ROOT = '/var/django/mysite/' directory = os.path.join(PROJECT_ROOT, 'src') if not directory in sys.path: sys. (HowTos)