              allowed_include_roots=settings.ALLOWED_INCLUDE_ROOTS,
              context_processors=settings.TEMPLATE_CONTEXT_PROCESSORS,
              loaders=settings.TEMPLATE_LOADERS,
              string_if_invalid=settings.TEMPLATE_STRING_IF_INVALID,
          )
  
      @cached_property
      def template_loaders(self):
          return self.get_template_loaders(self.loaders)
 
</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                 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):
            file_charset=settings.FILE_CHARSET,
              allowed_include_roots=settings.ALLOWED_INCLUDE_ROOTS,
              context_processors=settings.TEMPLATE_CONTEXT_PROCESSORS,
              loaders=settings.TEMPLATE_LOADERS,
              string_if_invalid=settings.TEMPLATE_STRING_IF_INVALID,
            file_charset=settings.FILE_CHARSET,
          )
  
      @cached_property
      def template_loaders(self):
          return self.get_template_loaders(self.loaders)
keep keep keep add keep keep keep keep keep
 Removed dependency of template loaders on Django settings. 
django/template/engine.py