summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2014-09-06 19:02:06 +0200
committerAymeric Augustin <aymeric.augustin@m4x.org>2014-09-06 19:03:14 +0200
commitf8fdb7177b79b79968a3f40612d33c7367ae584f (patch)
tree920e34f0cad5a29801a6ad613450dc0e09b3e1ce
parentba8983333a561b56c44c2d72c87f918604eae7f9 (diff)
[1.7.x] Fixed #23437 -- Documented required update of WSGI scripts for 1.7.
Thanks Tim for the review. Backport of dfe209a from master
-rw-r--r--docs/releases/1.7.txt16
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/releases/1.7.txt b/docs/releases/1.7.txt
index 72951b5262..38f2376d39 100644
--- a/docs/releases/1.7.txt
+++ b/docs/releases/1.7.txt
@@ -1020,6 +1020,22 @@ script with::
Otherwise, you will hit an ``AppRegistryNotReady`` exception.
+WSGI scripts
+~~~~~~~~~~~~
+
+Until Django 1.3, the recommended way to create a WSGI application was::
+
+ import django.core.handlers.wsgi
+ application = django.core.handlers.wsgi.WSGIHandler()
+
+In Django 1.4, support for WSGI was improved and the API changed to::
+
+ from django.core.wsgi import get_wsgi_application
+ application = get_wsgi_application()
+
+If you're still using the former style in your WSGI script, you need to
+upgrade to the latter, or you will hit an ``AppRegistryNotReady`` exception.
+
App registry consistency
^^^^^^^^^^^^^^^^^^^^^^^^