Changeset 3698
- Timestamp:
- 08/31/06 18:31:25 (2 years ago)
- Files:
-
- django/trunk/django/contrib/sitemap/__init__.py (modified) (1 diff)
- django/trunk/docs/sitemaps.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/contrib/sitemap/__init__.py
r3694 r3698 65 65 return urls 66 66 67 class Flat pageSitemap(Sitemap):67 class FlatPageSitemap(Sitemap): 68 68 def items(self): 69 69 from django.contrib.sites.models import Site django/trunk/docs/sitemaps.txt
r3696 r3698 209 209 The sitemap framework provides a couple convenience classes for common cases: 210 210 211 ``Flat pageSitemap``211 ``FlatPageSitemap`` 212 212 ------------------- 213 213 214 The `` FlatpageSitemap`` class looks at all flatpages_ defined for the current215 ``SITE_ID`` (see the `sites documentation`_) and creates an entry in the 216 sitemap. These entries include only the ``location`` attribute -- not 217 ``lastmod``, ``changefreq`` or ``priority``.214 The ``django.contrib.sitemaps.FlatPageSitemap`` class looks at all flatpages_ 215 defined for the current ``SITE_ID`` (see the `sites documentation`_) and 216 creates an entry in the sitemap. These entries include only the ``location`` 217 attribute -- not ``lastmod``, ``changefreq`` or ``priority``. 218 218 219 219 .. _flatpages: http://www.djangoproject.com/documentation/flatpages/ … … 240 240 241 241 from django.conf.urls.defaults import * 242 from django.contrib.sitemap import Flat pageSitemap, GenericSitemap242 from django.contrib.sitemap import FlatPageSitemap, GenericSitemap 243 243 from mysite.blog.models import Entry 244 244 … … 249 249 250 250 sitemaps = { 251 'flatpages': Flat pageSitemap,251 'flatpages': FlatPageSitemap, 252 252 'blog': GenericSitemap(info_dict, priority=0.6), 253 253 }
