This is a Django application to add django-crispy-forms layout objects for Foundation.
This app does not embed a Foundation release, you will have to install it yourself.
- Read the documentation on Read the docs;
- Download his PyPi package;
- Clone it on his Github repository;
- Demo app : crispy-forms-foundation-demo;
- django-crispy-forms = 1.4.x;
Just register the app in your project settings like that :
INSTALLED_APPS = (
...
'crispy_forms',
'crispy_forms_foundation',
...
)
Then append this part to specify usage of the Foundation set :
# Default layout to use with "crispy_forms"
CRISPY_TEMPLATE_PACK = 'foundation-5'
If not defined, the default template pack name used is foundation-5
, also there is a basic foundation-3
support but it's not be maintained anymore.
All other django-crispy-forms settings option apply, see its documentation for more details.