/django/contrib/gis/tests/geoapp/sitemaps.py

https://code.google.com/p/mango-py/ · Python · 8 lines · 7 code · 1 blank · 0 comment · 0 complexity · 7c51a55f6437eb40ca5b7fad21ed7534 MD5 · raw file

  1. from django.contrib.gis.sitemaps import GeoRSSSitemap, KMLSitemap, KMZSitemap
  2. from models import City, Country
  3. from feeds import feed_dict
  4. sitemaps = {'kml' : KMLSitemap([City, Country]),
  5. 'kmz' : KMZSitemap([City, Country]),
  6. 'georss' : GeoRSSSitemap(feed_dict),
  7. }