SettingsΒΆ

  • BASE_URL = '/'

    Root-relative URL where the site will live. Must end with slash.

  • STATIC_URL = '/'

    Root-relative URL where the static files will be placed.

  • LANGUAGES = None

    Enables i18n. Must contain a list of site languages. Example: ['ru', 'en']

  • DEFAULT_LANGUAGE = None

    Language that will be available without it’s URL prefix.

  • DEFAULT_PAGE = None

    Path of the page that will be avalable at root URL.

  • BUNDLES = {}

    Dictionary with webassets bundles (webassets.Bundle).

  • LAYOUTS = {}

    Dictionary (or patterns) that maps node paths to their layouts.

  • ORDERING = {}

    Dictionary (or patterns) that maps node paths to the ordering settings.

    Dictionary keys (node paths) are pointing to the nodes whose children needs to be ordered. Note: to specify ordering for first level nodes, use key '*' (because the root node doesn’t have a path).

    This setting passed directly to the core.sort_tree() – see it’s documentation for variants of ordering.

    Example:

    ORDERING = {
        '*': ['home', 'about', 'articles'],
        'articles': 'alphabetically',
    }
    
  • PAGINATION = {}

    Dictionary (or patterns) that maps node paths to the numbers of children per page.

    Dictionary keys (node paths) are pointing to the nodes whose children needs to be divided into pages. Note: to paginate first level nodes, use key '*' (because the root node doesn’t have a path).

    This setting passed directly to the core.paginate_tree() – see it’s documentation for details.

    Example:

    PAGINATION = {
        'company/blog': 10,
    }
    
  • PAGE_NAME = 'page%i'

    Slug to be used in the URLs of paginated items.

Previous topic

Example

Next topic

Command line interface

This Page