PageRenderTime 262ms CodeModel.GetById 100ms app.highlight 2ms RepoModel.GetById 119ms app.codeStats 0ms

/django/contrib/gis/tests/geoapp/urls.py

https://code.google.com/p/mango-py/
Python | 14 lines | 13 code | 1 blank | 0 comment | 0 complexity | 92e86307af9970c8748c3d4db819e3b9 MD5 | raw file
 1from django.conf.urls.defaults import *
 2from feeds import feed_dict
 3
 4urlpatterns = patterns('',
 5    (r'^feeds/(?P<url>.*)/$', 'django.contrib.syndication.views.feed', {'feed_dict': feed_dict}),
 6)
 7
 8from sitemaps import sitemaps
 9urlpatterns += patterns('django.contrib.gis.sitemaps.views',
10    (r'^sitemap.xml$', 'index', {'sitemaps' : sitemaps}),
11    (r'^sitemaps/(?P<section>\w+)\.xml$', 'sitemap', {'sitemaps' : sitemaps}),
12    (r'^sitemaps/kml/(?P<label>\w+)/(?P<model>\w+)/(?P<field_name>\w+)\.kml$', 'kml'),
13    (r'^sitemaps/kml/(?P<label>\w+)/(?P<model>\w+)/(?P<field_name>\w+)\.kmz$', 'kmz'),                
14)