mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	Don't try to load app directory templates from apps with a path (eg eggs)
This commit is contained in:
		| @@ -19,6 +19,8 @@ def calculate_app_template_dirs(): | ||||
|         fs_encoding = sys.getfilesystemencoding() or sys.getdefaultencoding() | ||||
|     app_template_dirs = [] | ||||
|     for app_config in apps.get_app_configs(): | ||||
|         if not app_config.path: | ||||
|             continue | ||||
|         template_dir = os.path.join(app_config.path, 'templates') | ||||
|         if os.path.isdir(template_dir): | ||||
|             if six.PY2: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user