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

11 lines
302 B
Python

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