Skip to main content

Materializecss support for Django projects

Project description

# django-materialize-forms
Django tamplatetags for materialize css



Installation
------------
1. Install using pip:

pip install django-materialize-forms

2. Add to INSTALLED_APPS:

'materialize_forms',



Use in templates
----------------

{% load materialize %}

# Using a filter

<form action="/url/to/submit/" method="post">
{% csrf_token %}
{{ form.field_1|as_material:"s12" }}
{{ form.field_2|as_material:"s12" }}
{{ form.field_3|as_material:"s12" }}
<div class="form-actions">
<button type="submit" class="btn btn-primary">Submit</button>
</div>
</form>

Project details


Download files

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

Source Distribution

django-materialize-forms-0.2.0.tar.gz (1.3 MB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page