Python django.contrib.sitemaps.views.sitemap() Examples
The following are 1
code examples of django.contrib.sitemaps.views.sitemap().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
django.contrib.sitemaps.views
, or try the search function
.
Example #1
Source File: views.py From wagtail with BSD 3-Clause "New" or "Revised" License | 5 votes |
def sitemap(request, sitemaps=None, **kwargs): if sitemaps: sitemaps = prepare_sitemaps(request, sitemaps) else: sitemaps = {'wagtail': Sitemap(request)} return sitemap_views.sitemap(request, sitemaps, **kwargs)