https://docs.djangoproject.com/en/3.1/ref/contrib/sitemaps/#django.contrib.sitemaps.Sitemap.protocol
Of course slowly with a clear deprecation timeline.
What do you think?
--
Ticket URL: <https://code.djangoproject.com/ticket/32375>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* type: New feature => Cleanup/optimization
* version: 3.1 => master
* stage: Unreviewed => Accepted
Comment:
Sounds reasonable. We can add a warning for changing the default and
switch it when the deprecation ends (as in
9a30acad8a1996c914351bad981d937de4db29a4). Would you like to provide a
patch?
--
Ticket URL: <https://code.djangoproject.com/ticket/32375#comment:1>
* cc: Jerin Peter George (added)
* owner: nobody => Jerin Peter George
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/32375#comment:2>
* easy: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/32375#comment:3>
* owner: Jerin Peter George => Rohith P R
* has_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/32375#comment:4>
* keywords: => sitemap, protocol, https
* needs_better_patch: 0 => 1
Comment:
[https://github.com/django/django/pull/14396 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/32375#comment:5>
* needs_better_patch: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/32375#comment:6>
* needs_better_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/32375#comment:7>
* needs_better_patch: 1 => 0
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/32375#comment:8>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"7cca22964c09e8dafc313a400c428242404d527a" 7cca2296]:
{{{
#!CommitTicketReference repository=""
revision="7cca22964c09e8dafc313a400c428242404d527a"
Fixed #32375 -- Started deprecation toward changing the default sitemap
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.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/32375#comment:9>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"4eb97a90f0b4484fb13dd2166a61f9fe7256e9d0" 4eb97a90]:
{{{
#!CommitTicketReference repository=""
revision="4eb97a90f0b4484fb13dd2166a61f9fe7256e9d0"
Refs #32375 -- Changed default sitemap protocol to https.
Per deprecation timeline.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/32375#comment:10>