Fix up some minor formatting.

This commit is contained in:
Paul J. Davis 2010-05-06 19:40:35 -04:00
parent 99dbe28e98
commit 8cd4071f0e

View File

@ -70,9 +70,9 @@ that don't require a translation layer. Basic usage::
$ gunicorn [OPTIONS] APP_MODULE $ gunicorn [OPTIONS] APP_MODULE
Where APP_MODULE is of the pattern $(MODULE_NAME):$(VARIABLE_NAME). The module Where ``APP_MODULE`` is of the pattern ``$(MODULE_NAME):$(VARIABLE_NAME)``. The
name can be a full dotted path. The variable name refers to a WSGI callable module name can be a full dotted path. The variable name refers to a WSGI
that should be found in the specified module. callable that should be found in the specified module.
Example with test app:: Example with test app::
@ -87,17 +87,18 @@ applications. Basic usage::
$ gunicorn_django [OPTIONS] [SETTINGS_PATH] $ gunicorn_django [OPTIONS] [SETTINGS_PATH]
By default SETTINGS_PATH will look for settings.py in the current directory. By default ``SETTINGS_PATH`` will look for ``settings.py`` in the current
directory.
Example with your Django project: Example with your Django project:
$ cd path/to/yourdjangoproject $ cd path/to/yourdjangoproject
$ gunicorn_django --workers=2 $ gunicorn_django --workers=2
Alternatively, you can install some Gunicorn magic directly into your Django Alternatively, you can install some Gunicorn magic directly into your Django
project and use the provided command for running the server. project and use the provided command for running the server.
First you'll need to add ``gunicorn`` to your INSTALLED_APPS in the settings First you'll need to add ``gunicorn`` to your ``INSTALLED_APPS`` in the settings
file:: file::
INSTALLED_APPS = ( INSTALLED_APPS = (
@ -107,7 +108,7 @@ file::
Then you can run:: Then you can run::
python manage.py run_gunicorn python manage.py run_gunicorn
gunicorn_paster gunicorn_paster
+++++++++++++++ +++++++++++++++
@ -119,8 +120,8 @@ apologize for the lack of script name creativity. And some usage::
Simple example:: Simple example::
$ cd your pasteproject $ cd your pasteproject
$ gunicorn_paste --workers=2 development.ini $ gunicorn_paste --workers=2 development.ini
If you're wanting to keep on keeping on with the usual paster serve command, If you're wanting to keep on keeping on with the usual paster serve command,
you can specify the Gunicorn server settings in your configuration file:: you can specify the Gunicorn server settings in your configuration file::