diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2014-09-06 19:02:06 +0200 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2014-09-06 19:02:06 +0200 |
| commit | dfe209a0c0801855cd8157199cb3bb31e5be11ce (patch) | |
| tree | b19a5cade24cd70c0daa0f66ee19864758c2bcc2 | |
| parent | fa74dba994bb3e70839623073a6ab5dfc815a9b3 (diff) | |
Fixed #23437 -- Documented required update of WSGI scripts for 1.7.
Thanks Tim for the review.
| -rw-r--r-- | docs/releases/1.7.txt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/releases/1.7.txt b/docs/releases/1.7.txt index 50be55c8a5..08ea56bc3a 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 ^^^^^^^^^^^^^^^^^^^^^^^^ |
