  class Engine(object):
  
      def __init__(self, dirs=None, app_dirs=False,
                   allowed_include_roots=None, context_processors=None,
                   loaders=None, string_if_invalid=''):
          if dirs is None:
              dirs = []
          if allowed_include_roots is None:
              allowed_include_roots = []
          if context_processors is None:
 
</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.") </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             template_dirs = settings.TEMPLATE_DIRS
 </s> add             template_dirs = self.engine.dirs
                 loaders=None, string_if_invalid='',
                 file_charset=None):
  class Engine(object):
  
      def __init__(self, dirs=None, app_dirs=False,
                   allowed_include_roots=None, context_processors=None,
                 loaders=None, string_if_invalid='',
                 file_charset=None):
          if dirs is None:
              dirs = []
          if allowed_include_roots is None:
              allowed_include_roots = []
          if context_processors is None:
keep keep keep keep replace keep keep keep keep keep
 Removed dependency of template loaders on Django settings. 
django/template/engine.py