MCPcopy
hub / github.com/django/django / render_to_kml

Function render_to_kml

django/contrib/gis/shortcuts.py:24–29  ·  view source on GitHub ↗

Render the response as KML (using the correct MIME type).

(*args, **kwargs)

Source from the content-addressed store, hash-verified

22
23
24def 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
32def render_to_kmz(*args, **kwargs):

Callers

nothing calls this directly

Calls 2

HttpResponseClass · 0.90
render_to_stringMethod · 0.80

Tested by

no test coverage detected