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.21.tar.gz
(599.0 kB
view hashes)
Built Distribution
Close
Hashes for django-material-admin-1.6.21.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a30fcc06d584b79e49c3a51594b5a5058684dde1388f0d7d76274b249690fcb8 |
|
MD5 | 54117a7c99006acd4823ec17cb5054dd |
|
BLAKE2b-256 | 209c7b5d879c07a4c11d95b3399f08d02135292a799c108bad00b088eac00a4c |
Close
Hashes for django_material_admin-1.6.21-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ada397038ede517de4c7272e17d9b04628cd5fc40ff228ab5e5db6586448da6c |
|
MD5 | 0a1d7e3e15b72a299440cbdc2bb50b15 |
|
BLAKE2b-256 | adb93381c24adb512b24294508ed6f086818c269246c5f6e3bd830dcb48d9174 |