>
> > view
> >
> > def generateKml(request):
> >
> > locations = Location.objects.all().values('name','lat','longt')
> >
> > result= render_to_response('locations.kml',{
> > 'locations': locations
> > })
> >
> > return
On Fri, 2009-02-27 at 05:06 -0800, phoebebright wrote:
> Took me a long long time to work out why the .kml file I created in
> django would parse as valid in Feedburner but googlemaps said it was
> an invalid kml file. Need to be sending as correct content-type of
> course.
[...]
> view
>
Took me a long long time to work out why the .kml file I created in
django would parse as valid in Feedburner but googlemaps said it was
an invalid kml file. Need to be sending as correct content-type of
course.
In case anyone else is stuck, here is how I did it:
template
---
3 matches
Mail list logo