Installation¶
Requirements¶
Nuit is built using SASS, and requires that you install the SASS binary in order to compile and compress the CSS. This won’t be installed using pip
, and will need to be installed manually (usually with gem install sass
).
Installation¶
Install Nuit with
pip
:pip install django-nuit
Add
nuit
to yourINSTALLED_APPS
insettings.py
:INSTALLED_APPS = ( ... 'nuit', ... )
Add the the following to the end of
settings.py
:from django_autoconfig.autoconfig import configure_settings configure_settings(globals())
For production, add the following settings for django-pipeline (see their documentation for more detail):
PIPELINE_ENABLED = True
Run
collectstatic
:manage.py collectstatic
You’re now ready to start using Nuit in your templates and apps.
Dependencies¶
In case you’re installing Nuit differently (e.g. from the git repo), make sure to install the following dependencies.
-
Fairly obvious - this is a Django library, afterall:
pip install django
-
In order to compile the CSS used by Nuit:
pip install django-pipeline
-
Nuit provides a suite to tools to help you easily build a consistent front-end interface for your Django application using Zurb’s Foundation framework. This package contains the static files (CSS, Javscript) that makes up that framework:
pip install django-foundation-statics
-
This package contains Zurb’s Foundation Icons static files:
pip install django-foundation-icons
-
This package contains SASS mixins used by Nuit:
pip install django-bourbon
-
Allows you to include two lines of code in your
settings.py
that adds all the required Django settings for Nuit:pip install django-autoconfig