2013-07-29 19:19:04 +02:00
|
|
|
from __future__ import unicode_literals
|
2011-10-17 18:45:22 +00:00
|
|
|
|
2014-04-01 20:46:34 -04: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-02-09 13:19:34 -05: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-01 20:46:34 -04:00
|
|
|
urlpatterns = [
|
|
|
|
url(r'^feeds/(?P<url>.*)/$', gis_views.feed, {'feed_dict': feed_dict}),
|
|
|
|
]
|
2008-08-23 19:22:23 +00:00
|
|
|
|
2014-04-01 20:46:34 -04:00
|
|
|
urlpatterns += [
|
|
|
|
url(r'^sitemaps/(?P<section>\w+)\.xml$', sitemap_views.sitemap, {'sitemaps': sitemaps}),
|
|
|
|
]
|
2014-03-22 18:31:52 +01:00
|
|
|
|
2014-04-01 20:46:34 -04:00
|
|
|
urlpatterns += [
|
2014-06-07 19:35:57 -04: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-01 20:46:34 -04:00
|
|
|
]
|