Browse files

Fixed #19633 - Discouraged use of gunicorn's Django integration.

  • Loading branch information...
1 parent 214fb70 commit 0db86273ae1c31ee9881fe63f210cb2120fde18a @timgraham timgraham committed Jan 22, 2013
Showing with 6 additions and 0 deletions.
  1. +6 −0 docs/howto/deployment/wsgi/gunicorn.txt
@@ -48,6 +48,12 @@ ensure that is to run this command from the same directory as your
Using Gunicorn's Django integration
+.. note::
+ If you are using Django 1.4 or newer, it’s highly recommended to simply run
+ your application with the WSGI interface using the ``gunicorn`` command
+ as described above.

typeshige Jan 23, 2013

For the curious, it would be helpful if it stated briefly why this is recommended.


kitsunde Jan 24, 2013

@typeshige It seems like the recommendation originates from gunicorn. I'm not sure why, either.


mjtamlyn Jan 24, 2013


It's to do with the fact Django is now WSGI compliant so gunicorn is wrapping Django's own WSGI rather than hacking around inside django as it used to need to. I think it rather substantially reduces the amount of code on both sides.

To use Gunicorn's built-in Django integration, first add ``"gunicorn"`` to
:setting:`INSTALLED_APPS`. Then run ``python run_gunicorn``.

0 comments on commit 0db8627

Please sign in to comment.