def render_to_kmz(*args, **kwargs):
    return HttpResponse(compress_kml(loader.render_to_string(*args, **kwargs)),
        content_type='application/vnd.google-earth.kmz')
Compresses the KML content and returns as KMZ (using the correct 
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/django/contrib/gis/shortcuts.py/render_to_kmz