mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed #8995 -- Added support for HTTPS in sitemaps.
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
This commit is contained in:
parent
123f567093
commit
a4b472dd80
13 changed files with 229 additions and 93 deletions
|
@ -161,6 +161,9 @@ Sitemap class reference
|
|||
the ``get_absolute_url()`` method on each object as returned by
|
||||
:attr:`~Sitemap.items()`.
|
||||
|
||||
To specify a protocol other than ``'http'``, use
|
||||
:attr:`~Sitemap.protocol`.
|
||||
|
||||
.. attribute:: Sitemap.lastmod
|
||||
|
||||
**Optional.** Either a method or attribute.
|
||||
|
@ -193,7 +196,7 @@ Sitemap class reference
|
|||
* ``'yearly'``
|
||||
* ``'never'``
|
||||
|
||||
.. method:: Sitemap.priority
|
||||
.. attribute:: Sitemap.priority
|
||||
|
||||
**Optional.** Either a method or attribute.
|
||||
|
||||
|
@ -208,6 +211,18 @@ Sitemap class reference
|
|||
|
||||
.. _sitemaps.org documentation: http://www.sitemaps.org/protocol.html#prioritydef
|
||||
|
||||
.. attribute:: Sitemap.protocol
|
||||
|
||||
.. versionadded:: 1.4
|
||||
|
||||
**Optional.**
|
||||
|
||||
This attribute defines the protocol (``'http'`` or ``'https'``) of the
|
||||
URLs in the sitemap. If it isn't set, the protocol with which the
|
||||
sitemap was requested is used. If the sitemap is built outside the
|
||||
context of a request, the default is ``'http'``.
|
||||
|
||||
|
||||
Shortcuts
|
||||
=========
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue