From 77b3907d6dcd5ab0da01a782bb4b94bd6ca82b63 Mon Sep 17 00:00:00 2001 From: Collin Anderson Date: Fri, 5 Sep 2014 16:41:47 -0700 Subject: [PATCH] Fixed #23430 -- simplified gunicorn deployment docs. --- docs/howto/deployment/wsgi/gunicorn.txt | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/docs/howto/deployment/wsgi/gunicorn.txt b/docs/howto/deployment/wsgi/gunicorn.txt index cd6e38f23ba..0e50ac66b38 100644 --- a/docs/howto/deployment/wsgi/gunicorn.txt +++ b/docs/howto/deployment/wsgi/gunicorn.txt @@ -22,21 +22,15 @@ Running Django in Gunicorn as a generic WSGI application When Gunicorn is installed, a ``gunicorn`` command is available which starts the Gunicorn server process. At its simplest, gunicorn just needs to be called -with the location of a WSGI application object.:: +with the location of a file containing a WSGI application object named +`application`. So for a typical Django project, invoking gunicorn would look +like:: - gunicorn [OPTIONS] APP_MODULE + gunicorn myproject.wsgi -Where ``APP_MODULE`` is of the pattern ``MODULE_NAME:VARIABLE_NAME``. The -module name should be a full dotted path. The variable name refers to a WSGI -callable that should be found in the specified module. - -So for a typical Django project, invoking gunicorn would look like:: - - gunicorn myproject.wsgi:application - -(This requires that your project be on the Python path; the simplest way to -ensure that is to run this command from the same directory as your -``manage.py`` file.) +This will start one process running one thread listening on ``127.0.0.1:8000``. +It requires that your project be on the Python path; the simplest way to ensure +that is to run this command from the same directory as your ``manage.py`` file. See Gunicorn's `deployment documentation`_ for additional tips.