mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	[1.7.x] Fixed #22811 -- Allowed setting both the old and new TEST database settings.
An ImproperlyConfigured exception will be raised they mismatch. Backport of1c58cabad7anda2cd0e12c9from master
This commit is contained in:
		| @@ -614,6 +614,8 @@ TEST | ||||
|  | ||||
|     All :setting:`TEST <DATABASE-TEST>` sub-entries used to be independent | ||||
|     entries in the database settings dictionary, with a ``TEST_`` prefix. | ||||
|     For backwards compatibility with older versions of Django, you can define | ||||
|     both versions of the settings as long as they match. | ||||
|     Further, ``TEST_CREATE``, ``TEST_USER_CREATE`` and ``TEST_PASSWD`` | ||||
|     were changed to ``CREATE_DB``, ``CREATE_USER`` and ``PASSWORD`` | ||||
|     respectively. | ||||
|   | ||||
| @@ -1546,9 +1546,12 @@ will be removed in Django 1.8. | ||||
|  | ||||
| Reorganization of database test settings | ||||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||||
|  | ||||
| All database settings with a ``TEST_`` prefix have been deprecated in favor of | ||||
| entries in a :setting:`TEST <DATABASE-TEST>` dictionary in the database | ||||
| settings. The old settings will be supported until Django 1.9. | ||||
| settings. The old settings will be supported until Django 1.9. For backwards | ||||
| compatibility with older versions of Django, you can define both versions of | ||||
| the settings as long as they match. | ||||
|  | ||||
| FastCGI support | ||||
| ~~~~~~~~~~~~~~~ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user