2011-10-18 02:45:22 +08:00
|
|
|
from __future__ import absolute_import
|
|
|
|
|
2011-09-12 06:36:16 +08:00
|
|
|
from django.conf.urls import patterns
|
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
|
|
|
|
|
|
|
urlpatterns = patterns('',
|
2011-07-13 17:36:07 +08:00
|
|
|
(r'^feeds/(?P<url>.*)/$', 'django.contrib.gis.views.feed', {'feed_dict': feed_dict}),
|
2008-08-24 03:22:23 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
urlpatterns += patterns('django.contrib.gis.sitemaps.views',
|
|
|
|
(r'^sitemap.xml$', 'index', {'sitemaps' : sitemaps}),
|
|
|
|
(r'^sitemaps/(?P<section>\w+)\.xml$', 'sitemap', {'sitemaps' : sitemaps}),
|
|
|
|
(r'^sitemaps/kml/(?P<label>\w+)/(?P<model>\w+)/(?P<field_name>\w+)\.kml$', 'kml'),
|
2011-07-13 17:36:07 +08:00
|
|
|
(r'^sitemaps/kml/(?P<label>\w+)/(?P<model>\w+)/(?P<field_name>\w+)\.kmz$', 'kmz'),
|
2008-08-17 04:40:47 +08:00
|
|
|
)
|