def load_template_source(self, template_name, template_dirs=None):
        if resource_string is not None:
            pkg_name = 'templates/' + template_name
            for app in settings.INSTALLED_APPS:
                try:
                    return (resource_string(app, pkg_name).decode(settings.FILE_CHARSET), 'egg:%s:%s' % (app, pkg_name))
                except:
                    pass
        raise TemplateDoesNotExist(template_name)
Loads templates from Python eggs via pkg_resource.resource_string.
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/django/template/loaders/eggs.py/Loader.load_template_source