From bcb3c003d4e83f99cae134bf8440a55b96841d73 Mon Sep 17 00:00:00 2001 From: benoitc Date: Sat, 26 Jul 2014 10:28:48 +0200 Subject: [PATCH] doc: let django user know about the DJANGO_SETTINGS_MODULE env improve the documentation to show the usage of the DJANGO_SETTINGS_MODULE environment variable. related to #802. --- docs/source/run.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/run.rst b/docs/source/run.rst index fbd59b34..d57c3c99 100644 --- a/docs/source/run.rst +++ b/docs/source/run.rst @@ -64,7 +64,7 @@ callable that should be found in the specified module. So for a typical Django project, invoking gunicorn would look like: - gunicorn myproject.wsgi:application + gunicorn --env DJANGO_SETTINGS_MODULE=myproject.settings 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