Fix BLOG_PERMALINK_URLS name in doc

This commit is contained in:
Iacopo Spalletti 2016-06-29 16:23:19 +02:00
parent ecfe85fb1f
commit 8a479a557a
No known key found for this signature in database
GPG key ID: BDCBC2EB289F60C6

View file

@ -15,12 +15,12 @@ If you want to attach the blog to the home page you have to adapt settings a bit
To avoit this add the following settings to you project:: To avoit this add the following settings to you project::
BLOG_PERMALINKS = ( BLOG_AVAILABLE_PERMALINK_STYLES = (
('full_date', _('Full date')), ('full_date', _('Full date')),
('short_date', _('Year / Month')), ('short_date', _('Year / Month')),
('category', _('Category')), ('category', _('Category')),
) )
BLOG_PERMALINKS_URLS = { BLOG_PERMALINK_URLS = {
'full_date': r'^(?P<year>\d{4})/(?P<month>\d{1,2})/(?P<day>\d{1,2})/(?P<slug>\w[-\w]*)/$', 'full_date': r'^(?P<year>\d{4})/(?P<month>\d{1,2})/(?P<day>\d{1,2})/(?P<slug>\w[-\w]*)/$',
'short_date': r'^(?P<year>\d{4})/(?P<month>\d{1,2})/(?P<slug>\w[-\w]*)/$', 'short_date': r'^(?P<year>\d{4})/(?P<month>\d{1,2})/(?P<slug>\w[-\w]*)/$',
'category': r'^(?P<category>\w[-\w]*)/(?P<slug>\w[-\w]*)/$', 'category': r'^(?P<category>\w[-\w]*)/(?P<slug>\w[-\w]*)/$',