update readme & usage

This commit is contained in:
Benoit Chesneau 2009-12-27 15:02:07 +01:00
parent a925c045be
commit 0b8d51d116
2 changed files with 10 additions and 1 deletions

View File

@ -29,3 +29,12 @@ Example with test app :
$ gunicorn --workers=2 test:app $ gunicorn --workers=2 test:app
For django projects use the `gunicorn_django` command.
$ cd yourdjangoproject
$ gunicorn_django --workers=2

View File

@ -32,7 +32,7 @@ import sys
import django.core.handlers.wsgi import django.core.handlers.wsgi
import gunicorn import gunicorn
__usage__ = "%prog [OPTIONS] APP_MODULE" __usage__ = "%prog [OPTIONS]"
PROJECT_PATH = os.getcwd() PROJECT_PATH = os.getcwd()
PROJECT_NAME = os.path.split(PROJECT_PATH)[-1] PROJECT_NAME = os.path.split(PROJECT_PATH)[-1]