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.26.tar.gz
(599.3 kB
view hashes)
Built Distribution
Close
Hashes for django-material-admin-1.6.26.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7135efd0b9ff419a98ec165d7b80c7d4c5cd7ec697ae113d76051f07f36dc649 |
|
MD5 | 80a3f5170a1c90c7e12ddb947e7c97e7 |
|
BLAKE2b-256 | f05db15838471c1f4e16b33fe2c9a655bb32a5625be3c63438e4af096c7f75cf |
Close
Hashes for django_material_admin-1.6.26-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26680cc15c1b3c86e225580e42f42a08b734477e9dab249e53d6392abc6b7bdb |
|
MD5 | 78de0d5bb8209d13d6d1813a0e236734 |
|
BLAKE2b-256 | be898e141790c0368d53524bf79eb93313618eccdf9fb1910e1521584ac3271c |