MDC for Django provides a helper to use Material Companent for the Web with Django application.
MDC for Django includes following components:
- Custom widgets for using on django form
- Custom tags
- Stylesheets
First, create your django application.
$ python -m django-admin startproject your-project-name
Then add MDC for Django to your application
$ cd your-project-name
$ git clone https://github.com/YuoMamoru/mdc-for-django.git mdc
Just use mdc.forms
instead of django.forms
.
from mdc import forms
class CustomForm(forms.Form):
field1 = forms.CharField(
max_length=127,
required=False,
widget=forms.TextInput,
)
Note: Please replace the
mdc
part in accordance with your cloned directory name.