jericksanjuan / crispy-forms-materialize

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

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

License:GNU General Public License v3.0


Languages

Language:HTML 70.5%Language:Python 29.5%