Widgy Mezzanine¶
This app provides integration with the Mezzanine project. Widgy Mezzanine uses
Mezzanine for site structure and Widgy for page content. It does this by
providing a subclass of Mezzanine’s Page model called
WidgyPage which delegates to
Page Builder for all content.
The dependencies for Widgy Mezzanine (Mezzanine and Widgy’s Page Builder app) are not installed by default when you install widgy, you can install them yourself:
$ pip install Mezzanine django-widgy[page_builder]
or you can install them using through the widgy package:
$ pip install django-widgy[page_builder,widgy_mezzanine]
In order to use Widgy Mezzanine, you must provide WIDGY_MEZZANINE_SITE in
your settings. This is a fully-qualified import path to an instance of
WidgySite. You also need to install the URLs.
url(r'^widgy-mezzanine/', include('widgy.contrib.widgy_mezzanine.urls')),
-
class
widgy.contrib.widgy_mezzanine.models.WidgyPage¶ The
WidgyPageclass isswappablelikeUser. If you want to override it, specify aWIDGY_MEZZANINE_PAGE_MODELin your settings. thewidgy.contrib.widgy_mezzanine.models.WidgyPageMixinmixin is provided for ease of overriding. Any code that references aWidgyPageshould use thewidgy.contrib.widgy_mezzanine.get_widgypage_model()to get the correct class.