mirror of
				https://github.com/django/django.git
				synced 2025-10-31 01:25:32 +00:00 
			
		
		
		
	[1.4.x] Fixed #18019 -- Use threaded runserver only when database supports it.
This commit is contained in:
		| @@ -35,4 +35,11 @@ class Command(BaseCommand): | |||||||
|         # a strange error -- it causes this handle() method to be called |         # a strange error -- it causes this handle() method to be called | ||||||
|         # multiple times. |         # multiple times. | ||||||
|         shutdown_message = '\nServer stopped.\nNote that the test database, %r, has not been deleted. You can explore it on your own.' % db_name |         shutdown_message = '\nServer stopped.\nNote that the test database, %r, has not been deleted. You can explore it on your own.' % db_name | ||||||
|         call_command('runserver', addrport=addrport, shutdown_message=shutdown_message, use_reloader=False, use_ipv6=options['use_ipv6']) |         use_threading = connection.features.test_db_allows_multiple_connections | ||||||
|  |         call_command('runserver', | ||||||
|  |             addrport=addrport, | ||||||
|  |             shutdown_message=shutdown_message, | ||||||
|  |             use_reloader=False, | ||||||
|  |             use_ipv6=options['use_ipv6'], | ||||||
|  |             use_threading=use_threading | ||||||
|  |         ) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user