{% load static %} Material Design for Django Forms and Admin
Django-material
Material design for django forms and admin
viewflow.io
Overview
Material design with goodies
  • Forms– Easy way to render custom django forms
    • Strong python/html code separation
    • Easy redefinition of particular field rendering
    • Complex form layout support
  • Frontend– Quick starter template
  • Admin– Material-designed django admin
Installation

django-material tested with Python 2.7/3.3, django 1.8
    $ pip install django-material 
And add desired apps into INSTALLED_APPS settings
    INSTALLED_APPS = (
        'material',
        'material.frontend',
        'material.admin',
       ...
    )
NOTE: 'material.admin' must be added before 'django.contrib.admin'
Quick start

Include material javascript and styles into your base template.
    {% templatetag openblock %} include 'material/includes/material_css.html' {% templatetag closeblock %}
    {% templatetag openblock %} include 'material/includes/material_js.html' {% templatetag closeblock %}
Load the `material_form` template tag library
     {% templatetag openblock %} load material_form {% templatetag closeblock %} 
And render your form with {% templatetag openblock %} form {% templatetag closeblock %} template tag
    <form method="POST">
        {% templatetag openblock %} csrf_token {% templatetag closeblock %}
        {% templatetag openblock %} form form=form {% templatetag closeblock %}{% templatetag openblock %} endform {% templatetag closeblock %}
        <button type="submit" name="_submit" class="btn">Submit</button>
    </form>

Read the full documentation at http://docs.viewflow.io/

Frontend

Quick starter template for modular ERP-like applications developent
Quick start

Add material.frontend.context_processors.modules into context_processor setting
TEMPLATES = [
        {
            ...
            'OPTIONS': {
                'context_processors': [
                    ...
                    'material.frontend.context_processors.modules',
                ],
            },
        },
]
Add frontend urls into global urlconf module at urls.py
from material.frontend import urls as frontend_urls

    urlpatterns = [
        ...
        url(r'^admin/', include(admin.site.urls)),
        url(r'', include(frontend_urls)),
]
To create a new module make a `modules.py` file, inside app directory, with following content .. code-block:: python
from material.frontend import Module

    class Sample(Module):
        icon = 'mdi-image-compare'
By default module expose a single view that renders html template from <module_name>/index.html file.

You can override `Module.get_urls()` method to provide module url config that would be automatically included into global urls.

Administration