                      resource = resource_string(app_config.name, pkg_name)
                  except Exception:
                      continue
                  if six.PY2:
                      resource = resource.decode(settings.FILE_CHARSET)
                  return (resource, 'egg:%s:%s' % (app_config.name, pkg_name))
          raise TemplateDoesNotExist(template_name)
 
</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             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.")
                    resource = resource.decode(self.engine.file_charset)
                      resource = resource_string(app_config.name, pkg_name)
                  except Exception:
                      continue
                  if six.PY2:
                    resource = resource.decode(self.engine.file_charset)
                  return (resource, 'egg:%s:%s' % (app_config.name, pkg_name))
          raise TemplateDoesNotExist(template_name)
keep keep keep keep replace keep keep
 Removed dependency of template loaders on Django settings. 
django/template/loaders/eggs.py