[Django] #33210: Sitemap framework URL examples lack `name` parameter (used by ping_google helper)

8 views
Skip to first unread message

Django

unread,
Oct 20, 2021, 4:09:38 AM10/20/21
to django-...@googlegroups.com
#33210: Sitemap framework URL examples lack `name` parameter (used by ping_google
helper)
-------------------------------------+-------------------------------------
Reporter: Carlton | Owner: Arkadiusz Adamski
Gibson |
Type: | Status: assigned
Cleanup/optimization |
Component: | Version: 3.2
contrib.sitemaps |
Severity: Normal | Keywords: Documentation
Triage Stage: Accepted | Has patch: 1
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 1 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
Migrated from https://github.com/django/djangoproject.com/issues/1103.

The `ping_google()` helper in the sitemaps framework looks for URLs named
`'django.contrib.sitemaps.views.index'` and then
`'django.contrib.sitemaps.views.sitemap'` to autodetect the sitemap URL,
if one's not provided.

* The docs examples don't show this.
* the [https://docs.djangoproject.com/en/3.2/ref/contrib/sitemaps
/#pinging-google Pinging Google docs] don't explain how the auto-detection
works.

The combination of these two means that you need to look at the source
code to know how to correctly leverage the auto-detection — adding to the
docs would clarify this.

[https://github.com/django/django/pull/14994 Pull Request]

--
Ticket URL: <https://code.djangoproject.com/ticket/33210>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Oct 21, 2021, 10:11:36 AM10/21/21
to django-...@googlegroups.com
#33210: Sitemap framework URL examples lack `name` parameter (used by ping_google
helper)
-------------------------------------+-------------------------------------
Reporter: Carlton Gibson | Owner: Arkadiusz
Type: | Adamski
Cleanup/optimization | Status: assigned
Component: contrib.sitemaps | Version: 3.2
Severity: Normal | Resolution:
Keywords: Documentation | Triage Stage: Ready for
| checkin

Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Carlton Gibson):

* stage: Accepted => Ready for checkin


--
Ticket URL: <https://code.djangoproject.com/ticket/33210#comment:1>

Django

unread,
Oct 21, 2021, 10:11:47 AM10/21/21
to django-...@googlegroups.com
#33210: Sitemap framework URL examples lack `name` parameter (used by ping_google
helper)
-------------------------------------+-------------------------------------
Reporter: Carlton Gibson | Owner: Arkadiusz
Type: | Adamski
Cleanup/optimization | Status: assigned
Component: contrib.sitemaps | Version: 3.2
Severity: Normal | Resolution:
Keywords: Documentation | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Carlton Gibson):

* needs_better_patch: 1 => 0


--
Ticket URL: <https://code.djangoproject.com/ticket/33210#comment:2>

Django

unread,
Oct 21, 2021, 11:26:13 AM10/21/21
to django-...@googlegroups.com
#33210: Sitemap framework URL examples lack `name` parameter (used by ping_google
helper)
-------------------------------------+-------------------------------------
Reporter: Carlton Gibson | Owner: Arkadiusz
Type: | Adamski
Cleanup/optimization | Status: closed
Component: contrib.sitemaps | Version: 3.2
Severity: Normal | Resolution: fixed

Keywords: Documentation | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Carlton Gibson <carlton.gibson@…>):

* status: assigned => closed
* resolution: => fixed


Comment:

In [changeset:"1405dc78872f9d18180feebb4f2c57dbe1259acb" 1405dc7]:
{{{
#!CommitTicketReference repository=""
revision="1405dc78872f9d18180feebb4f2c57dbe1259acb"
Fixed #33210 -- Clarified docs for sitemaps ping_google() helper.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/33210#comment:3>

Django

unread,
Oct 21, 2021, 2:28:32 PM10/21/21
to django-...@googlegroups.com
#33210: Sitemap framework URL examples lack `name` parameter (used by ping_google
helper)
-------------------------------------+-------------------------------------
Reporter: Carlton Gibson | Owner: Arkadiusz
Type: | Adamski
Cleanup/optimization | Status: closed
Component: contrib.sitemaps | Version: 3.2
Severity: Normal | Resolution: fixed
Keywords: Documentation | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Mariusz Felisiak <felisiak.mariusz@…>):

In [changeset:"ac815f6ea83a66122ee434f773f8c923f4cd3125" ac815f6]:
{{{
#!CommitTicketReference repository=""
revision="ac815f6ea83a66122ee434f773f8c923f4cd3125"
[4.0.x] Fixed #33210 -- Clarified docs for sitemaps ping_google() helper.

Backport of 1405dc78872f9d18180feebb4f2c57dbe1259acb from main
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/33210#comment:4>

Reply all
Reply to author
Forward
0 new messages