From 0b8d51d116d47e7b7c8a04c9e215ddbd7524ae86 Mon Sep 17 00:00:00 2001 From: Benoit Chesneau Date: Sun, 27 Dec 2009 15:02:07 +0100 Subject: [PATCH] update readme & usage --- README.txt | 9 +++++++++ bin/gunicorn_django | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/README.txt b/README.txt index 06fef29b..f3c04146 100644 --- a/README.txt +++ b/README.txt @@ -27,5 +27,14 @@ Example with test app : $ cd examples $ gunicorn --workers=2 test:app + + +For django projects use the `gunicorn_django` command. + + $ cd yourdjangoproject + $ gunicorn_django --workers=2 + + + diff --git a/bin/gunicorn_django b/bin/gunicorn_django index dcd98e53..39e6df5c 100644 --- a/bin/gunicorn_django +++ b/bin/gunicorn_django @@ -32,7 +32,7 @@ import sys import django.core.handlers.wsgi import gunicorn -__usage__ = "%prog [OPTIONS] APP_MODULE" +__usage__ = "%prog [OPTIONS]" PROJECT_PATH = os.getcwd() PROJECT_NAME = os.path.split(PROJECT_PATH)[-1]