mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	Fixed #21486 -- Prevented settings config in signal connection
This was particularly problematic in the chain get_wsgi_application -> db.connections import -> signal connection -> settings configuration. Thanks Jon Dufresne for the report.
This commit is contained in:
		| @@ -85,7 +85,7 @@ class Signal(object): | ||||
|         from django.conf import settings | ||||
|  | ||||
|         # If DEBUG is on, check that we got a good receiver | ||||
|         if settings.DEBUG: | ||||
|         if settings.configured and settings.DEBUG: | ||||
|             import inspect | ||||
|             assert callable(receiver), "Signal receivers must be callable." | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user