diff options
| author | Collin Anderson <collin@onetencommunications.com> | 2014-09-05 16:41:47 -0700 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-09-05 20:36:56 -0400 |
| commit | fee499c80b479873685530c24d6a9bd1eb9f49a0 (patch) | |
| tree | 86d947709b9896d6e5f26e6d7b35736abc7eba06 /docs | |
| parent | d4ef9a4a21ecf897ebcbdc49737fdb5b210fbb98 (diff) | |
[1.7.x] Fixed #23430 -- simplified gunicorn deployment docs.
Backport of 77b3907d6d from master
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/howto/deployment/wsgi/gunicorn.txt | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/docs/howto/deployment/wsgi/gunicorn.txt b/docs/howto/deployment/wsgi/gunicorn.txt index cd6e38f23b..0e50ac66b3 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. |
