/crispy-forms-materialize

Django application to add 'django-crispy-forms' layout objects for Materialize CSS http://materializecss.com/

Primary LanguageHTMLGNU General Public License v3.0GPL-3.0

Introduction

This is a Django application to add django-crispy-forms layout objects for Materialize.

This app does not embed a Materialize release, you will have to install django-materialize-css as a dependency.

Links

Requires

Installation

Just register the app in your project settings like that :

INSTALLED_APPS = (
    ...
    'materialize',
    'crispy_forms',
    'crispy_forms_materialize',
    ...
)

Then append this part to specify usage of the Materialize set :

# Default layout to use with "crispy_forms"
CRISPY_TEMPLATE_PACK = 'materialize'
CRISPY_ALLOWED_TEMPLATE_PACKS = ('bootstrap', 'uni_form', 'bootstrap3', 'materialize')

All other django-crispy-forms settings option apply, see its documentation for more details.