def load_template_source(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), ('egg:%s:%s ' % (app, pkg_name)))
   except:
    pass
 raise TemplateDoesNotExist, template_name

def load_template_source ( 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 ) , ( 'egg:%s:%s ' % ( app , pkg_name ) ) ) except : pass raise TemplateDoesNotExist , template_name
loads templates from python eggs via pkg_resource .