Re: Creating KML files for use in Google Maps

2009-03-15 Thread Ariel Mauricio Nunez Gomez
> > > view > > > > def generateKml(request): > > > > locations = Location.objects.all().values('name','lat','longt') > > > > result= render_to_response('locations.kml',{ > > 'locations': locations > > }) > > > > return

Re: Creating KML files for use in Google Maps

2009-03-15 Thread Malcolm Tredinnick
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 >

Creating KML files for use in Google Maps

2009-02-27 Thread phoebebright
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 ---