Render the response as KML (using the correct MIME type).
(*args, **kwargs)
| 22 | |
| 23 | |
| 24 | def render_to_kml(*args, **kwargs): |
| 25 | "Render the response as KML (using the correct MIME type)." |
| 26 | return HttpResponse( |
| 27 | loader.render_to_string(*args, **kwargs), |
| 28 | content_type="application/vnd.google-earth.kml+xml", |
| 29 | ) |
| 30 | |
| 31 | |
| 32 | def render_to_kmz(*args, **kwargs): |
nothing calls this directly
no test coverage detected