Skip to content

Instantly share code, notes, and snippets.

@tmcw
Created January 14, 2010 23:56
Show Gist options
  • Save tmcw/277631 to your computer and use it in GitHub Desktop.
Save tmcw/277631 to your computer and use it in GitHub Desktop.
def report_feed(request):
reports = FieldReport.objects.kml()
r = render_to_kml('kml/placemarks.kml', {'places' : reports})
r['Content-Disposition'] = 'attachment;filename=reports.kml'
return r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment