def render_to_kml(*args, **kwargs):
    return HttpResponse(loader.render_to_string(*args, **kwargs),
        content_type='application/vnd.google-earth.kml+xml')
Renders the response as KML (using the correct MIME type).
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/django/contrib/gis/shortcuts.py/render_to_kml