diff -r 25c7466925f7 django/contrib/sitemaps/__init__.py
a
|
b
|
|
79 | 79 | 'location': loc, |
80 | 80 | 'lastmod': self.__get('lastmod', item, None), |
81 | 81 | 'changefreq': self.__get('changefreq', item, None), |
82 | | 'priority': str(priority is not None and priority or '') |
| 82 | 'priority': str(priority is not None and priority or ''), |
| 83 | 'item': item, |
83 | 84 | } |
84 | 85 | urls.append(url_info) |
85 | 86 | return urls |
diff -r 25c7466925f7 docs/ref/contrib/sitemaps.txt
a
|
b
|
|
313 | 313 | }), |
314 | 314 | ) |
315 | 315 | |
| 316 | Index |
| 317 | ----- |
| 318 | |
| 319 | The variable `sitemaps` is a list of absolute URLs to each of the sitemaps. |
| 320 | |
| 321 | Sitemap |
| 322 | ------- |
| 323 | |
| 324 | The variable `urlset` is a list of each URLs that should appear in the sitemap. Each URL exposes `changefreq`, `item`, `lastmod`, `location` and `priority`. |
| 325 | |
| 326 | .. versionadded:: SVN |
| 327 | |
| 328 | The `item` object has been added for each URL to allow for more flexible customization. |
| 329 | |
316 | 330 | Pinging Google |
317 | 331 | ============== |
318 | 332 | |