Add apphook config urlconf to settings

This commit is contained in:
Iacopo Spalletti 2018-02-06 10:02:02 +01:00
commit 3e83bc8b72
No known key found for this signature in database
GPG key ID: BDCBC2EB289F60C6
6 changed files with 85 additions and 2 deletions

View file

@ -31,6 +31,22 @@ Notice that the last permalink type is no longer present.
Then, pick any of the three remaining permalink types in the layout section of the apphooks config
linked ot the home page (see http://yoursite.com/admin/djangocms_blog/blogconfig/).'
.. _blog-custom-urlconf:
************************
Provide a custom URLConf
************************
It's possible to completely customize the urlconf by setting ``BLOG_URLCONF`` to the dotted path of
the new urlconf.
Example::
BLOG_URLCONF = 'my_project.blog_urls.py'
The custom urlconf can be created by copying the existing urlconf in `djangocms_blog/urls.py`,
saving it to a new file `my_project.blog_urls.py` and editing it according to the custom needs.
.. _multisite:

View file

@ -68,6 +68,7 @@ Global Settings
* BLOG_AVAILABLE_PERMALINK_STYLES: Choices of permalinks styles;
* BLOG_PERMALINK_URLS: URLConf corresponding to
BLOG_AVAILABLE_PERMALINK_STYLES;
* BLOG_URLCONF: Apphoo URLConf; (default: ``'djangocms_blog.urls'``);
* BLOG_DEFAULT_OBJECT_NAME: Default name for Blog item (used in django CMS Wizard);
* BLOG_AUTO_SETUP: Enable the blog **Auto setup** feature; (default: ``True``)
* BLOG_AUTO_HOME_TITLE: Title of the home page created by **Auto setup**;