Material Design For Django Administration
Project description
# Django Material Design Admin
Quick start
Add “material.admin” and “material.admin.default” to your INSTALLED_APPS setting instead of “django.contrib.admin”:
INSTALLED_APPS = ( 'material.admin', 'material.admin.default', 'django.contrib.auth', ... )
Include the material templates URLconf in your project urls.py like this:
urlpatterns = [ path('admin/', admin.site.urls), ]
Use the admin with material styles
from django.contrib.admin import ModelAdmin, register from persons.models import Person @register(Person) class PersonAdmin(ModelAdmin): list_display = ('name', 'first_name', 'last_name')
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 django.contrib.admin import ModelAdmin, register from persons.models import Person @register(Person) class MaterialPersonAdmin(ModelAdmin): 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.7.0.tar.gz
(599.8 kB
view hashes)
Built Distribution
Close
Hashes for django-material-admin-1.7.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9fcd078247bc9fd31b09ff39b06ba367501ddeb2a4ccdec583240f844883fbad |
|
MD5 | 5f87326132e509a053aa7168d0030c79 |
|
BLAKE2b-256 | 9cd99d403b8b55f62413c7f9648869cf0ac166be0ef758fe5aac1e41cc0778fe |
Close
Hashes for django_material_admin-1.7.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3666c83c3f3f607af176e9c4579d56f080e5650cc70d113d7d79fb502d1531e7 |
|
MD5 | 8be6fc39e3c2a3ce50ea54afe5aefa0d |
|
BLAKE2b-256 | bfbb016d42f85b711004f5a037d1a42c0e654adf366933b5b174f70b328c02ef |