Material Design For Django Administration
Project description
# Django Material Admin
Coming soon…
Quick start
Add “django-material-admin” to your INSTALLED_APPS setting like this:
INSTALLED_APPS = ( ... 'material', 'django.contrib.admin', ... )
Include the material templates URLconf in your project urls.py like this:
urlpatterns = [ path('admin/', include('material.urls')), ]
Extend Admin config from MaterialModelAdmin
from material.options import MaterialModelAdmin from material.decorators import register from persons.models import Person @register(Person) class PersonAdmin(MaterialModelAdmin): list_display = ('name', 'first_name', 'last_name')
or
from material.options import MaterialModelAdmin from material.sites import site from persons.models import Person class PersonAdmin(MaterialModelAdmin): list_display = ('name', 'first_name', 'last_name') site.register(User)
4. Add icon to the application in app.py https://materializecss.com/icons.html
from django.apps import AppConfig class PersonsConfig(AppConfig): name = 'persons' icon_name = 'person'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-material-admin-0.0.20.tar.gz
(358.5 kB
view hashes)
Built Distribution
Close
Hashes for django-material-admin-0.0.20.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | baabaafa2d13b6d749349351edcbea62ba816346058fede8ed7aab1c9319eb73 |
|
MD5 | fcf52e58d49e58dbfac75e4e67f05741 |
|
BLAKE2b-256 | bcf6bd159d95c785066cb1ae1e0f41fb70501a3f37c98584cbda59489360e136 |
Close
Hashes for django_material_admin-0.0.20-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9b5810b2aa01c361a06db0f527503ed1ca9e02d3585d73f901c95b8ea9cc9d1 |
|
MD5 | fd54d177c33baa2b15d1fef6d08d1316 |
|
BLAKE2b-256 | 429af1e1b47dfaa3912ae8b5df00f974be25426f99231a83240fb088fde7645d |