mirror of
https://github.com/django/django.git
synced 2024-12-23 17:46:27 +00:00
4bb33bb074
This patch adjusted existing tests that used invalid identifiers.
27 lines
787 B
Python
27 lines
787 B
Python
from django.contrib.gis import views as gis_views
|
|
from django.contrib.gis.sitemaps import views as gis_sitemap_views
|
|
from django.contrib.sitemaps import views as sitemap_views
|
|
from django.urls import path
|
|
|
|
from .feeds import feed_dict
|
|
from .sitemaps import sitemaps
|
|
|
|
urlpatterns = [
|
|
path('feeds/<path:url>/', gis_views.feed, {'feed_dict': feed_dict}),
|
|
]
|
|
|
|
urlpatterns += [
|
|
path('sitemaps/<section>.xml', sitemap_views.sitemap, {'sitemaps': sitemaps}),
|
|
]
|
|
|
|
urlpatterns += [
|
|
path(
|
|
'sitemaps/kml/<label>/<model>/<field_name>.kml',
|
|
gis_sitemap_views.kml,
|
|
name='django.contrib.gis.sitemaps.views.kml'),
|
|
path(
|
|
'sitemaps/kml/<label>/<model>/<field_name>.kmz',
|
|
gis_sitemap_views.kmz,
|
|
name='django.contrib.gis.sitemaps.views.kmz'),
|
|
]
|