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.43.tar.gz
(600.2 kB
view hashes)
Built Distribution
Close
Hashes for django-material-admin-1.6.43.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | aecc43c112991022dcef52675459a68afc2ebb2ec8fd62fd52cbcb64d539a655 |
|
MD5 | 36375d5ace04f7062462c0e41765dd00 |
|
BLAKE2b-256 | a4faea1afee6c9fc1b21a044d8f31ce96344acf6de0a3aed510d72796329f90e |
Close
Hashes for django_material_admin-1.6.43-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 258864651a1b6f96fc50db0a331740a85e0b59c7943ac3eabeb65e2ecef493f0 |
|
MD5 | 6a2aaed27c64dd7f1c6c6448d263a4f7 |
|
BLAKE2b-256 | 7151ca38bbbace4a9d506d7cddc6aa2782d64344db633022cf02b840187a390d |