2013-07-29 17:19:04 +00:00
|
|
|
from __future__ import unicode_literals
|
2011-10-17 18:45:22 +00:00
|
|
|
|
2014-04-02 00:46:34 +00:00
|
|
|
from django.conf.urls import url
|
|
|
|
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
|
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 = [
|
|
|
|
url(r'^feeds/(?P<url>.*)/$', gis_views.feed, {'feed_dict': feed_dict}),
|
|
|
|
]
|
2008-08-23 19:22:23 +00:00
|
|
|
|
2014-04-02 00:46:34 +00:00
|
|
|
urlpatterns += [
|
|
|
|
url(r'^sitemaps/(?P<section>\w+)\.xml$', sitemap_views.sitemap, {'sitemaps': sitemaps}),
|
|
|
|
]
|
2014-03-22 17:31:52 +00:00
|
|
|
|
2014-04-02 00:46:34 +00:00
|
|
|
urlpatterns += [
|
2014-06-07 23:35:57 +00:00
|
|
|
url(r'^sitemaps/kml/(?P<label>\w+)/(?P<model>\w+)/(?P<field_name>\w+)\.kml$',
|
|
|
|
gis_sitemap_views.kml,
|
|
|
|
name='django.contrib.gis.sitemaps.views.kml'),
|
|
|
|
url(r'^sitemaps/kml/(?P<label>\w+)/(?P<model>\w+)/(?P<field_name>\w+)\.kmz$',
|
|
|
|
gis_sitemap_views.kmz,
|
|
|
|
name='django.contrib.gis.sitemaps.views.kmz'),
|
2014-04-02 00:46:34 +00:00
|
|
|
]
|