Skip to content

YuoMamoru/mdc-for-django

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub license

MDC for Django

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

Installation

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

Usage of widgets on form

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.

About

Components for using MDC on django

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published