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