summaryrefslogtreecommitdiff
path: root/django/contrib/sitemaps/__init__.py
AgeCommit message (Collapse)Author
2025-07-23Refs #36500 -- Rewrapped long docstrings and block comments via a script.django-bot
Rewrapped long docstrings and block comments to 79 characters + newline using script from https://github.com/medmunds/autofix-w505.
2023-07-10Fixed #34688 -- Removed contrib.sitemaps.ping_google() and ping_google ↵Andrew Northall
management command. Thanks Joachim Jablon for the report. Google has deprecated the sitemap ping endpoint, and will be removing it in 6 months ~January 2024.
2023-01-17Refs #32375 -- Changed default sitemap protocol to https.Mariusz Felisiak
Per deprecation timeline.
2022-12-19Fixed #33662 -- Allowed Sitemap to customize languages for each item.Roxane
2022-11-07Fixed #34088 -- Fixed Sitemap.get_latest_lastmod() crash with empty items.Daniel Ivanov
Bug in 480191244d12fefbf95854b2b117c71ffe44749a. Thanks Michal Čihař for the report.
2022-02-07Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2021-10-21Fixed #25916 -- Added lastmod support to sitemap index view.David Smith
Co-authored-by: Matthew Downey <matthew.downey@webit.com.au>
2021-05-21Fixed #32375 -- Started deprecation toward changing the default sitemap ↵Rohith PR
protocol to https. The default sitemap protocol, when it is built outside the context of a request, will be changed from 'http' to 'https' in Django 5.0.
2021-04-14Fixed #32648 -- Fixed VariableDoesNotExist rendering sitemaps template.Arthur Jovart
2020-07-29Fixed #27395 -- Added sitemap 'alternates' generation.Florian Demmer
Updated the sitemap generator and default template to optionally include link elements with hreflang attribute to alternate language URLs.
2020-07-21Fixed #31180 -- Configured applications automatically.Aymeric Augustin
2019-01-11Refs #23829 -- Made ping_google command/function use https for the sitemap URL.Sanyam Khurana
2018-09-26Refs #29784 -- Switched to https:// links where available.Jon Dufresne
2017-09-07Reverted "Fixed #27818 -- Replaced try/except/pass with contextlib.suppress()."Tim Graham
This reverts commit 550cb3a365dee4edfdd1563224d5304de2a57fda because try/except performs better.
2017-06-28Fixed #27818 -- Replaced try/except/pass with contextlib.suppress().Mads Jensen
2017-02-28Fixed #27842 -- Added protocol kwarg to GenericSitemap.__init__().Alexey Opalev
2017-02-04Refs #27656 -- Updated django.contrib docstring verb style according to PEP 257.Anton Samarchyan
2017-01-19Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette
2017-01-18Refs #23919 -- Removed most of remaining six usageClaude Paroz
Thanks Tim Graham for the review.
2016-11-22Added tests for contrib.sitemaps.ping_google().Adam Chainz
2016-08-25Replaced property() usage with decorator in several places.Berker Peksag
2016-03-08Fixed a dead link in django/contrib/sitemaps/__init__.py.Tim Graham
2015-12-31Fixed #26013 -- Moved django.core.urlresolvers to django.urls.Marten Kenbeek
Thanks to Tim Graham for the review.
2015-11-19Updated sitemaps.ping_google() to use https.Matt Robenolt
2015-06-27Sorted imports in __init__.py files.Tim Graham
2015-05-13Removed unnecessary arguments in .get method callsPiotr Jakimiak
2015-01-17Removed contrib.flatpages.FlatPageSitemap per deprecation timeline; refs #23884.Tim Graham
2014-12-15Fixed #23884 -- Moved FlatPageSitemap into django.contrib.flatpages.Berker Peksag
2014-09-05Limited lines to 119 characters in django/Tim Graham
refs #23395.
2014-06-20Fixed #22782 -- Added i18n attr to Sitemap classLuan Pablo
It makes possible to have your sitemap in multiple languages when using i18n in URLs.
2014-03-24Fixed typo in error message in django.contrib.sitemaps.Jannis
2014-02-01Suppressed the `if Site._meta.installed` pattern.Aymeric Augustin
The purpose of this construct is to test if the django.contrib.sites application is installed. But in Django 1.9 it will be forbidden to import the Site model when the django.contrib.sites application isn't installed. No model besides Site used this pattern. Refs #21719, #21923.
2014-01-25Fixed #21829 -- Added default AppConfigs.Aymeric Augustin
Thanks Russell for the report, Marc for the initial patch, Carl for the final review, and everyone who contributed to the design discussion.
2013-11-28Fixed E125 pep8 warningsChristopher Medrela
2013-11-02Fixed flake8 E241Boryslav Larin
2013-10-24Start attacking E231 violationsAlex Gaynor
2013-10-10Fixed "redefinition of unused 'foo' from line X" pyflakes warnings.Tim Graham
2013-09-17Fixed #21112 -- Make sure sitemaps with no lastmod date work correctly.Simon Charette
Thanks to Matthias Kestenholz for the report and patch.
2013-09-05Took advantage of django.utils.six.moves.urllib.*.Aymeric Augustin
2013-07-31Fixed #20793 -- Added Last-Modified header to sitemaps.Julian Bez
2013-05-26Replaced `and...or...` constructs with PEP 308 conditional expressions.Ramiro Morales
2012-07-22[py3] Updated urllib/urllib2/urlparse imports.Aymeric Augustin
Lots of functions were moved. Use explicit imports in all cases to keey it easy to identify where the functions come from.
2012-02-09Fixed #10793 -- Stopped caching paginator instances in sitemap classes to ↵Jannis Leidel
prevent stale sitemaps. Thanks, gnosek, krzysiumed and adam_przybyla. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17468 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-02-03Made a bunch more edits up until [17418]Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17428 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-01-29Fixed #8995 -- Added support for HTTPS in sitemaps.Aymeric Augustin
Modularized tests and did a bit of cleanup while I was in the area. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17409 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-07-13Fixed #16225 -- Removed unused imports. Many thanks to Aymeric Augustin for ↵Jannis Leidel
the work on the patch and Alex for reviewing. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16539 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-06-28Fixed #10907, #14190 and #15829 -- Pass item to sitemaps template to allow ↵Jannis Leidel
further customization like Google News enabled sitemaps. Thanks, manfre and lakinwecker. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16474 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-11Fixed #14433 - replaced a thread-unsafe solution to #10235 introduced in [13980]Luke Plant
This patch also addresses sitemap code found in contrib/gis, which [13980] did not. Thanks to gabrielhurley for the initial patch. Refs #10235, #14386 git-svn-id: http://code.djangoproject.com/svn/django/trunk@14141 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-04Fixed #14386, #8960, #10235, #10909, #10608, #13845, #14377 - standardize ↵Luke Plant
Site/RequestSite usage in various places. Many thanks to gabrielhurley for putting most of this together. Also to bmihelac, arthurk, qingfeng, hvendelbo, petr.pulc@s-cape.cz, Hraban for reports and some initial patches. The patch also contains some whitespace/PEP8 fixes. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13980 bcc190cf-cafb-0310-a4f2-bffc1f526a37