mirror of
				https://github.com/django/django.git
				synced 2025-10-29 08:36:09 +00:00 
			
		
		
		
	We want to be able to use it for instance for discovering `tasks.py` modules inside the INSTALLED_APPS. This commit therefore moves the logic to `autodiscover_modules` method in django.utils.module_loading.
		
			
				
	
	
		
			9 lines
		
	
	
		
			139 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
		
			139 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from . import site
 | |
| content = 'Another Bad Module'
 | |
| 
 | |
| site._registry.update({
 | |
|     'foo': 'bar',
 | |
| })
 | |
| 
 | |
| raise Exception('Some random exception.')
 |