          else:
              if app_dirs:
                  raise ImproperlyConfigured(
                      "APP_DIRS must not be set when LOADERS is defined.")
  
          self.dirs = dirs
          self.app_dirs = app_dirs
          self.allowed_include_roots = allowed_include_roots
          self.context_processors = context_processors
          self.loaders = loaders
 
</s> remove                  loaders=None, string_if_invalid=''):
 </s> add                  loaders=None, string_if_invalid='',
                 file_charset=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                     resource = resource.decode(settings.FILE_CHARSET)
 </s> add                     resource = resource.decode(self.engine.file_charset) </s> remove             template_dirs = settings.TEMPLATE_DIRS
 </s> add             template_dirs = self.engine.dirs
        if file_charset is None:
            file_charset = 'utf-8'
          else:
              if app_dirs:
                  raise ImproperlyConfigured(
                      "APP_DIRS must not be set when LOADERS is defined.")
        if file_charset is None:
            file_charset = 'utf-8'
  
          self.dirs = dirs
          self.app_dirs = app_dirs
          self.allowed_include_roots = allowed_include_roots
          self.context_processors = context_processors
          self.loaders = loaders
keep keep keep add keep keep keep keep keep keep
 Removed dependency of template loaders on Django settings. 
django/template/engine.py