  """
  
  import io
  
  from django.conf import settings
  from django.core.exceptions import SuspiciousFileOperation
  from django.template.base import TemplateDoesNotExist
  from django.template.utils import get_app_template_dirs
  from django.utils._os import safe_join
  
 
</s> remove from django.conf import settings
 </s> add  </s> remove from django.conf import settings
 </s> add  </s> remove             template_dirs = settings.TEMPLATE_DIRS
 </s> add             template_dirs = self.engine.dirs </s> remove             error_msg = "Your TEMPLATE_DIRS setting is empty. Change it to point to at least one template directory."
 </s> add             error_msg = ("Your template directories configuration is empty. "
                         "Change it to point to at least one template directory.")
  """
  
  import io
  

  from django.core.exceptions import SuspiciousFileOperation
  from django.template.base import TemplateDoesNotExist
  from django.template.utils import get_app_template_dirs
  from django.utils._os import safe_join
  
keep keep keep keep replace keep keep keep keep keep
 Removed dependency of template loaders on Django settings. 
django/template/loaders/app_directories.py