2014-04-02 00:46:34 +00:00
|
|
|
from django.contrib.gis import views as gis_views
|
|
|
|
from django.contrib.gis.sitemaps import views as gis_sitemap_views
|
2015-01-28 12:35:27 +00:00
|
|
|
from django.contrib.sitemaps import views as sitemap_views
|
2018-12-07 22:52:28 +00:00
|
|
|
from django.urls import path
|
2011-10-17 18:45:22 +00:00
|
|
|
|
|
|
|
from .feeds import feed_dict
|
|
|
|
from .sitemaps import sitemaps
|
|
|
|
|
2014-04-02 00:46:34 +00:00
|
|
|
urlpatterns = [
|
2018-12-07 22:52:28 +00:00
|
|
|
path("feeds/<path:url>/", gis_views.feed, {"feed_dict": feed_dict}),
|
2014-04-02 00:46:34 +00:00
|
|
|
]
|
2008-08-23 19:22:23 +00:00
|
|
|
|
2014-04-02 00:46:34 +00:00
|
|
|
urlpatterns += [
|
2018-12-07 22:52:28 +00:00
|
|
|
path("sitemaps/<section>.xml", sitemap_views.sitemap, {"sitemaps": sitemaps}),
|
2014-04-02 00:46:34 +00:00
|
|
|
]
|
2014-03-22 17:31:52 +00:00
|
|
|
|
2014-04-02 00:46:34 +00:00
|
|
|
urlpatterns += [
|
2018-12-07 22:52:28 +00:00
|
|
|
path(
|
|
|
|
"sitemaps/kml/<label>/<model>/<field_name>.kml",
|
2014-06-07 23:35:57 +00:00
|
|
|
gis_sitemap_views.kml,
|
|
|
|
name="django.contrib.gis.sitemaps.views.kml",
|
|
|
|
),
|
2018-12-07 22:52:28 +00:00
|
|
|
path(
|
2020-04-13 08:07:28 +00:00
|
|
|
"sitemaps/kml/<label>/<model>/<field_name>.kmz",
|
2014-06-07 23:35:57 +00:00
|
|
|
gis_sitemap_views.kmz,
|
|
|
|
name="django.contrib.gis.sitemaps.views.kmz",
|
|
|
|
),
|
2014-04-02 00:46:34 +00:00
|
|
|
]
|