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]