Skip to main content

Django Materialize Form

Project description

A simple Django library to render your form in Material Design


pip install django-materialize-form


  • Add “materializeform” to your INSTALLED_APPS.

  • At the top of your django templates load our templatetags

    {% load materialize %}

Then to render your form

<form action='.' method='post'>
    {% csrf_token %}
    {{ form|materialize }}
    <button type='submit' class="btn blue">Submit</button>

You can also set column class for each fields on the form

<form action='.' method='post'>
    {% csrf_token %}
    <div class="row">
    {{|materialize:"s12" }}

    <div class="row">
    {{ form.first_name|materialize:"s6" }}
    {{ form.last_name|materialize:"s6" }}

    <button type='submit' class="btn blue">Submit</button>

If you have ‘select’ menu in your form

Then please include,

    $(document).ready(function() {

Project details

Release history Release notifications

This version
History Node


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date (6.1 kB) Copy SHA256 hash SHA256 Source None Jun 24, 2015

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page