Skip to main content

django CMS page extension to handle sitemap customization

Project description

Latest PyPI version Monthly downloads Python versions Latest Travis CI build status Test coverage Test coverage Code Climate

django CMS page extension to handle sitemap customization

Support Python version:

  • Python 2.7, 3.3, 3.4, 3.5

Supported Django versions:

  • Django 1.8 to 1.10

Supported django CMS versions:

  • django CMS 3.2+

Features

  • Support for changefreq and priority customisation per-page

  • Option to exclude a page from the Sitemap

  • Values are cached

  • django CMS toolbar integration

Quickstart

  • Install djangocms-page-sitemap:

    pip install djangocms-page-sitemap
  • Add to INSTALLED_APPS with django.contrib.sitemaps:

    INSTALLED_APPS = [
        ...
        'django.contrib.sitemaps',
        'djangocms_page_sitemap',
    ]
  • Add to the urlconf, eventually removing django CMS sitemap:

    from djangocms_page_sitemap.sitemap import ExtendedSitemap
    
    urlpatterns = patterns('',
        ...
        url(r'^sitemap\.xml$', 'django.contrib.sitemaps.views.sitemap', {'sitemaps': {'cmspages': ExtendedSitemap}}),
    )

Usage

After installing as above, you will be able to tune the sitemap setting for each page.

A new menu item Sitemap properties will be available in the page toolbar.

Settings

  • PAGE_SITEMAP_CHANGEFREQ_LIST: List of frequency changes

  • PAGE_SITEMAP_DEFAULT_CHANGEFREQ: Default changefrequency (default: django CMS value -monthly-)

  • PAGE_SITEMAP_CACHE_DURATION: Cache duration: same as django CMS menu cache)

History

0.4.1 (2016-12-02)

  • Add Django 1.10 support

0.4.0 (2016-10-26)

  • Drop compatibility with django CMS 3.1 and below, Django 1.7 and below

0.3.1 (2015-10-18)

  • Improve defaults

0.3.0 (2015-10-18)

  • Add Python 3.5

  • Add option to exclude page from sitemap

0.2.0 (2015-08-15)

  • Update to support django CMS 3.1

  • Drop support for Django 1.4, 1.5

  • Add support for Django 1.8

0.1.0 (2014-08-26)

  • Initial version.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

djangocms-page-sitemap-0.4.1.tar.gz (15.4 kB view details)

Uploaded Source

Built Distribution

djangocms_page_sitemap-0.4.1-py2.py3-none-any.whl (18.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file djangocms-page-sitemap-0.4.1.tar.gz.

File metadata

File hashes

Hashes for djangocms-page-sitemap-0.4.1.tar.gz
Algorithm Hash digest
SHA256 033d8114f5b8cb1879ab160402541659aa048eb335928415624ede779a8c153b
MD5 b93089ade7e13b5f61c986d7223b4069
BLAKE2b-256 4720d33a1f4527f2c3aae631e9d4b059ecebdb3bbc495061fdfa43c05e16cdfb

See more details on using hashes here.

File details

Details for the file djangocms_page_sitemap-0.4.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for djangocms_page_sitemap-0.4.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 99a67538182263276c8b4f47559e61f573a2f0380ae7bdfaa6a487e40c4856cf
MD5 62023835bf66c5881723d3ef019fc1db
BLAKE2b-256 238746825e0073dcc568210d36158589bff473f4ca0b8c4d5645914dc40ebdfa

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page