2

I would like to know has anyone been successful to run django on nginx? I have several django apps running on Apache2 on suse 11.4 and i would like to migrate them to nginx. Are there any modules that django requires in order to successfully run on nginx.

1
  • it is really good question.
    – urcm
    Apr 2, 2012 at 12:20

4 Answers 4

3

On of our setups runs a Django/NginX/gunicorn setup, which to be honnest runs very well. We have more than 30k users per day. I used the following tutorial:
http://senko.net/en/django-nginx-gunicorn/

1
  • 1
    The link is broken
    – manu
    Jul 15, 2014 at 19:33
0

There are a lot of options. Just Googling Django nginx will give you a good idea how people handle their Django sites. The easiest is to use Django's built-in FastCGI server. The most popular seems to be uWSGI (I constantly see people raving on about it). I use FastCGI and it works just fine for me.

But this should give you an idea of where to start.

https://code.djangoproject.com/wiki/ServerArrangements#nginx

The two links near the top of this section should help explain more.

0

nginx is very flexible and very nice when you use it with uwsgi so i think your best choice is uwsgi and nginx for serving Django, this is the for ubuntu setup tutorial and this is for CentOS 7

0

you can use nginx + uwsgi + django, This tutorial is here: https://uwsgi-docs.readthedocs.io/en/latest/tutorials/Django_and_nginx.html?

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .