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.6.11.tar.gz
(595.1 kB
view hashes)
Built Distribution
Close
Hashes for django-material-admin-1.6.11.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9667fef24ab149d98f441f2c3f6e0cf9a9a35bafd575a1f6e720428f36f7a0d2 |
|
MD5 | 5ec535fcb7fe740ffec6b488d114ce78 |
|
BLAKE2b-256 | cfe46886056a5cfc88b5b0e825bc90035b9de5e63a24a0067334680996622dcc |
Close
Hashes for django_material_admin-1.6.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 711255d5f009d444db9b47b4138fe2e2d364739bd6ff8e36e16187e57eea57d9 |
|
MD5 | b2a2deda612c50ee348368be241ab2cf |
|
BLAKE2b-256 | 4a163b473dc31eb0cc8b1ab8014cdf5ac6f438dc09422bf804d6ab881204558d |