                  tried.append(filepath)
          if tried:
              error_msg = "Tried %s" % tried
          else:
              error_msg = "Your TEMPLATE_DIRS setting is empty. Change it to point to at least one template directory."
          raise TemplateDoesNotExist(error_msg)
      load_template_source.is_usable = True
 
</s> remove                 with io.open(filepath, encoding=settings.FILE_CHARSET) as fp:
 </s> add                 with io.open(filepath, encoding=self.engine.file_charset) as fp: </s> remove                     resource = resource.decode(settings.FILE_CHARSET)
 </s> add                     resource = resource.decode(self.engine.file_charset) </s> remove                  loaders=None, string_if_invalid=''):
 </s> add                  loaders=None, string_if_invalid='',
                 file_charset=None): </s> remove             template_dirs = settings.TEMPLATE_DIRS
 </s> add             template_dirs = self.engine.dirs
            error_msg = ("Your template directories configuration is empty. "
                         "Change it to point to at least one template directory.")
                  tried.append(filepath)
          if tried:
              error_msg = "Tried %s" % tried
          else:
            error_msg = ("Your template directories configuration is empty. "
                         "Change it to point to at least one template directory.")
          raise TemplateDoesNotExist(error_msg)
      load_template_source.is_usable = True
keep keep keep keep replace keep keep
 Removed dependency of template loaders on Django settings. 
django/template/loaders/filesystem.py