Settings¶
There are a handful of settings available to customise Nuit from settings.py
.
-
NUIT_GLOBAL_TITLE
¶ Defines the global title to be displayed in the Top Bar. Note that this is only visible if you do not define
NUIT_LARGE_LOGO
(and optionallyNUIT_SMALL_LOGO
). Defaults to ‘Nuit’.
-
NUIT_LARGE_LOGO
¶ Defines the path (to be passed to the
static
template tag) to the logo to be used in the title. Defaults toNone
, and no logo will be displayed.
-
NUIT_SMALL_LOGO
¶ Defines the path (to be passed to the
static
template tag) to the logo to be used at small sizes.NUIT_SMALL_LOGO
must also be defined - if set, this logo will replace the large logo at small screen sizes. Defaults toNone
.
-
NUIT_SEARCH_VIEW
¶ Defines the view which the search box, if used, will submit to. If not set, the form will submit to
/search/
.
-
NUIT_SEARCH_PLACEHOLDER
¶ Default: Search...
Defines the placeholder text for the search box.
-
NUIT_SEARCH_PARAMETER
¶ Default: q
Defines the name of the parameter used for the search term when submitted.
-
NUIT_APPLICATIONS
¶ Defines the global Nuit applications menu. This is intended to be the same across all of your sites using Nuit, and therefore ought to be added to
settings.py
via something like Puppet or Chef. These items are available in a drop-down menu on the right of the Top Bar. Multiple levels are acceptable. The structure should be a list of dictionaries with particular keys:NUIT_APPLICATIONS = ( { 'name': 'One Link', 'link': 'https://www.google.com/', }, { 'name': 'More under here', 'subs': ( { 'name': 'Another Link', 'link': 'https://pypi.python.org/', }, { 'name': 'Another Link 2', 'link': 'https://www.ocado.com', }, ), }, )