
Overview
Material design with goodies
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 along with jQuery into your base template.
{% templatetag openblock %} include 'material/includes/material_css.html' {% templatetag closeblock %}
<script src="{% templatetag openblock %} static 'material/js/jquery-2.2.0.js' {% templatetag closeblock %}"></script>
{% 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 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
You can override `Module.get_urls()` method to provide module url config that would be automatically included into global urls.
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.