This model contain the status, dates, author, template. The real content of the page can be found in the Content model.
Creates a QuerySet containing the ancestors of this model instance.
This defaults to being in descending order (root ancestor first, immediate parent last); passing True for the ascending argument will reverse the ordering (immediate parent first, root ancestor last).
Creates a QuerySet containing the immediate children of this model instance, in tree order.
The benefit of using this method over the reverse relation provided by the ORM to the instance’s children is that a database query can be avoided in the case where the instance is a leaf node (it has no children).
Creates a QuerySet containing descendants of this model instance, in tree order.
If include_self is True, the QuerySet will also include this model instance.
Creates a QuerySet containing siblings of this model instance. Root nodes are considered to be siblings of other root nodes.
If include_self is True, the QuerySet will also include this model instance.
Return the slug of the page depending on the given language.
If fallback is True, the slug will also be searched in other languages.
Return the title of the page depending on the given language.
If fallback is True, the title will also be searched in other languages.
Page manager provide several filters to obtain pages QuerySet that respect the page settings.
Content manager methods
PageAlias manager.
A collection of functions for Page CMS
Return a normalized url with trailing and without leading slash.
>>> normalize_url(None)
'/'
>>> normalize_url('/')
'/'
>>> normalize_url('/foo/bar')
'/foo/bar'
>>> normalize_url('foo/bar')
'/foo/bar'
>>> normalize_url('/foo/bar/')
'/foo/bar'
Page CMS functions related to the request object.