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.27.tar.gz
(599.3 kB
view hashes)
Built Distribution
Close
Hashes for django-material-admin-1.6.27.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 324add58bebc43739f2d37e98a465121a53e300ab93dac96bd974d4d0915d759 |
|
MD5 | 2fe1f0cc90b19954fa1896bcb8990991 |
|
BLAKE2b-256 | 94b189cc8dc6c7d19c45a996da7ab87b4b97834771ea11a9989fe56b48a27e89 |
Close
Hashes for django_material_admin-1.6.27-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74862dcd713c4bef39fb472ca8c3c46723340e72e1913ab3539999b29ffd0e0e |
|
MD5 | 6e02f790e35340c31563cb08029e3f6a |
|
BLAKE2b-256 | 6685c552f71f5110489f9b13d34672575cadca471d69bb5a0eb726feac5469e1 |