mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	[1.7.x] Fixed #23437 -- Documented required update of WSGI scripts for 1.7.
Thanks Tim for the review.
Backport of dfe209a from master
			
			
This commit is contained in:
		| @@ -1020,6 +1020,22 @@ script with:: | |||||||
|  |  | ||||||
| Otherwise, you will hit an ``AppRegistryNotReady`` exception. | 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 | App registry consistency | ||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^^^ | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user