Material Design For Django Administration
Project description
# Django Material Design Admin
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'
5. Add icon to the MaterialModelAdmin in admin.py https://materializecss.com/icons.html
from material.options import MaterialModelAdmin from material.decorators import register from persons.models import Person @register(Person) class MaterialPersonAdmin(MaterialModelAdmin): 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-1.1.4.tar.gz
(363.4 kB
view hashes)
Built Distribution
Close
Hashes for django-material-admin-1.1.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 533fd13a0d2e247db55828ed0d36c839c5ae501d9f5c0b49744d5660ac1acdc8 |
|
MD5 | b803d30463cf8dbe7a4f14da11125520 |
|
BLAKE2b-256 | e4f2e3cdba130ae99073d9e6de56f5ba677e7ce7cc3c7a0ef02703afaec4d40a |
Close
Hashes for django_material_admin-1.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4755801615b06831831a48470b746eea28264f0967909bdc1dbe5d957aaa0ad |
|
MD5 | cc5b19b950e0de9e2abb5d0947db3dac |
|
BLAKE2b-256 | 32c3ff810b34d194a1e65805d3fb902d62140ddecaaae04a332499b4e72d5b0d |