From 4ce57509a7af33ded141c036628e63beab7021d4 Mon Sep 17 00:00:00 2001
From: benoitc
Date: Tue, 15 May 2012 10:42:33 +0200
Subject: [PATCH] add a note about django1.4 & wsgi
---
doc/htdocs/deploy.html | 11 +++++++++++
doc/htdocs/run.html | 6 ++++++
doc/site/run.rst | 9 +++++++--
3 files changed, 24 insertions(+), 2 deletions(-)
diff --git a/doc/htdocs/deploy.html b/doc/htdocs/deploy.html
index e9068009..427ef625 100644
--- a/doc/htdocs/deploy.html
+++ b/doc/htdocs/deploy.html
@@ -197,6 +197,16 @@ redirect_stderr=True
+
+
+
Logging can be configured by using various flags detailed in the
+configuration documentation or by creating a logging configuration file.
+Send the USR1 signal to rotate logs if you are using the logrotate
+utility:
+
+kill -USR1 $(cat /var/run/gunicorn.pid)
+
+
diff --git a/doc/htdocs/run.html b/doc/htdocs/run.html
index e7797ce8..14a6eafc 100644
--- a/doc/htdocs/run.html
+++ b/doc/htdocs/run.html
@@ -86,6 +86,12 @@ directory.
$ cd path/to/yourdjangoproject
$ gunicorn_django --workers=2
+
+
Note
+
If you run Django 1.4 and superior, it's higly recommanded to
+simply run your application with the WSGI interface using
+the gunicorn command.
+
diff --git a/doc/site/run.rst b/doc/site/run.rst
index cec9fb3a..044ae190 100644
--- a/doc/site/run.rst
+++ b/doc/site/run.rst
@@ -36,7 +36,7 @@ Example with test app::
$ cat test.py
# -*- coding: utf-8 -
#
- # This file is part of gunicorn released under the MIT license.
+ # This file is part of gunicorn released under the MIT license.
# See the NOTICE for more information.
def app(environ, start_response):
@@ -49,7 +49,7 @@ Example with test app::
]
start_response(status, response_headers)
return iter([data])
-
+
$ gunicorn --workers=2 test:app
gunicorn_django
@@ -68,6 +68,11 @@ Example with your Django project::
$ cd path/to/yourdjangoproject
$ gunicorn_django --workers=2
+.. note:: If you run Django 1.4 and superior, it's higly recommanded to
+ simply run your application with the `WSGI interface
+
`_ using
+ the `gunicorn`_ command.
+
gunicorn_paster
+++++++++++++++