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.28.tar.gz
(599.4 kB
view hashes)
Built Distribution
Close
Hashes for django-material-admin-1.6.28.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 158874969145ce5ef523f641752c8437ac70774279893ff841bdb74131204885 |
|
MD5 | f6eff20fe4a64b40ce030cc1c097886d |
|
BLAKE2b-256 | 8e65886ee8e86d70bffb3d9e0ac4c81e363dfda146b747482bde928f6db963d4 |
Close
Hashes for django_material_admin-1.6.28-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ec8117ecb8915bd263284a20795b666eb0f028c6493de9cff0a9c1a1cd59b9f |
|
MD5 | 29a678b4995e4cfd744fb9d5fb594ed6 |
|
BLAKE2b-256 | 01b591fd00d48a055868d5fd9ab569fef7648f9609f6b7f5df03e3cc4af0d3e2 |