Skip to main content

A simple Django form template tag to work with Materializecss

Project description

# materialize-css-form
Materializecss for Django Form

A simple Django template tag to work with [Materializecss](

## Install

pip django-materializecss-form


[on pypi](
[on GitHub](



Add Materializecss to your project:

In your base.html:


{% block css %}
<link rel="stylesheet" href="" integrity="sha256-qj3p6P1fJIV+Ndv7RW1ovZI2UhOuboj9GcODzcNFIN8=" crossorigin="anonymous" />
{% endblock css %}



<body >

{% block javascript %}

<script src="" integrity="sha256-SrBfGi+Zp2LhAvy9M1bWOCXztRU9Ztztxmu5BcYPcPE=" crossorigin="anonymous"></script>


// Initialize materialize data picker
$('.datepicker').datepicker({'format': 'yyyy-mm-dd'});



{% endblock javascript %}



## Usage

Use it like this, simple.

{% load materializecss %}

### All the form

{{ form|materializecss }}

### Individual field

{{ form.<field name>|materializecss }}

### Custom size (default is 's12')

{{ form|materializecss:'m6' }}

## Demo

![Basic form](


## Help

### Widget

- TextInput
- Textarea
- Select
- Filefield
- DateField

## Inspired by


## Originally Built By

Florent CLAPIÉ


Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-materializecss-form, version 1.1.1
Filename, size File type Python version Upload date Hashes
Filename, size django-materializecss-form-1.1.1.tar.gz (4.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page