django CMS page extension to handle sitemap customization
Project description
django CMS page extension to handle sitemap customization
Support Python version:
Python 2.6
Python 2.7
Python 3.3
Python 3.4
Python 3.5
Supported Django versions:
Django 1.6
Django 1.7
Django 1.8
Supported django CMS versions:
django CMS 3.x
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}}), )
Upgrading
Since version 0.2 djangocms-page-sitemap ships with migrations both for south and Django 1.7+.
When upgrading you need to fake the migration to avoid errors:
$ python manage.py migrate djangocms_page_meta --fake
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.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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for djangocms-page-sitemap-0.3.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2adcfd513735acf3cb1dac93488b1c883bb8045a354f620f33917cf7512001e8 |
|
MD5 | b31c121708129c628e404988bb54e41f |
|
BLAKE2b-256 | 8424701b3df7ce0f32df0358774c94d360445959e2c7af7adcc07abe2ce1ed6c |
Hashes for djangocms_page_sitemap-0.3.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 405be8cd37f627883c480a730aa22649c6e5799c60cf696972f5816eb1a9a847 |
|
MD5 | 013c4b2bbc613890453159b00d8ceed0 |
|
BLAKE2b-256 | cdb5175c78b9cf054b67d87e7364ee69b8bd9e6f70c51ef5862674e0e21355d9 |