# Easiest way to use nginx with Python (Django)?

**URL:** <https://www.ruby-forum.com/t/easiest-way-to-use-nginx-with-python-django/208413>\
**Category:** NGINX\
**Created:** [June 17, 2011, 3:07pm UTC](https://www.ruby-forum.com/t/easiest-way-to-use-nginx-with-python-django/208413 "2011-06-17T15:07:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [June 17, 2011, 3:07pm UTC](https://www.ruby-forum.com/t/easiest-way-to-use-nginx-with-python-django/208413/1 "2011-06-17T15:07:23Z")

</div>

For a while now, I’ve been using nginx with great success as a remote  
proxy server in front of Tomcat, and also in front of PHP via fastcgi.  
It’s likely that I will require to use it in front of a Django Python  
web application soon, and I’m just wondering what the easiest way of  
doing this is likely to be. I’ve read about a number of different ways  
of doing this but what I’m most interested in is ease of setup - the  
last ounce of performance isn’t that critical. Keen to hear from anybody  
who’s done this.

John

---

<div class="post-metadata">

**Author:** ![jmaenpaa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9de053/32.png) [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Post date:** [June 17, 2011, 3:42pm UTC](https://www.ruby-forum.com/t/easiest-way-to-use-nginx-with-python-django/208413/2 "2011-06-17T15:42:36Z")

</div>

> * * *
> 
> nginx mailing list  
> [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> [mailman.nginx.org archive](http://nginx.org/mailman/listinfo/nginx)

[DISCLAIMER: i am the uWSGI author, so you can trust me as i am  
auto-losing a potential new customer :P]

If simplicity is your primary target, gunicorn is for sure the best way  
to  
go:

> **[Gunicorn - Python WSGI HTTP Server for UNIX](https://gunicorn.org/)**

it does only one thing and it does it well (and is written in python).

If in the future you need a more advanced platform you can look at  
uWSGI.

–  
Roberto De Ioris

> **[unbit - Overview](https://github.com/unbit)**
>
> makers of uWSGI and many more open source projects - unbit

---

<div class="post-metadata">

**Author:** ![jmaenpaa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9de053/32.png) [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Post date:** [June 18, 2011, 6:49pm UTC](https://www.ruby-forum.com/t/easiest-way-to-use-nginx-with-python-django/208413/3 "2011-06-18T18:49:04Z")

</div>

maybe this link would help

[http://senko.net/en/django-nginx-gunicorn/](http://senko.net/en/django-nginx-gunicorn/)

Regards

M

---

<div class="post-metadata">

**Author:** ![jmaenpaa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9de053/32.png) [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Post date:** [June 19, 2011, 7:44pm UTC](https://www.ruby-forum.com/t/easiest-way-to-use-nginx-with-python-django/208413/4 "2011-06-19T19:44:33Z")

</div>

On 18/06/11 17:48, Martin Loy wrote:

> maybe this link would help
> 
> [http://senko.net/en/django-nginx-gunicorn/](http://senko.net/en/django-nginx-gunicorn/)

Thanks, I’ll investigate gunicorn, then.

J
