/wagtailsettings

Simple settings app for wagtail CMS

Primary LanguagePythonBSD 2-Clause "Simplified" LicenseBSD-2-Clause

(Fork of https://bitbucket.org/takeflight/wagtailsettings)

(Has some minor modifications)

wagtailsettings

A plugin for Wagtail that provides add developer-defined settings to the admin.

Installing

Install using pip:

pip install wagtailsettings

It works with Wagtail 0.5 and upwards.

Add it to your INSTALLED_APPS:

Using

Create a model that inherits from BaseSetting, and register it using the register_setting decorator:

A 'Settings' link will appear in the Wagtail admin, with links to each of the settings models defined.

If access to a setting is required in the code, the BaseSetting.for_site method will retrieve the setting for the supplied site: