Material Design For Django Administration
Project description
# Django Material Admin
Coming soon…
Quick start
Add “django-material-admin” to your INSTALLED_APPS setting like this:
INSTALLED_APPS = ( ... 'material', 'django.contrib.admin', ... )
Include the material templates URLconf in your project urls.py like this:
urlpatterns = [ path('admin/', include('material.urls')), ]
Extend Admin config from MaterialModelAdmin
from material.options import MaterialModelAdmin from material.decorators import register @register(Person) class PersonAdmin(MaterialModelAdmin): list_display = ('name', 'first_name', 'last_name')
or
from material.options import MaterialModelAdmin from material.sites import site class PersonAdmin(MaterialModelAdmin): list_display = ('name', 'first_name', 'last_name') site.register(User)
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'
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-0.0.17.tar.gz
(357.3 kB
view hashes)
Built Distribution
Close
Hashes for django-material-admin-0.0.17.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f698ff93e2e75074ee0e57360ee49e38ccd4503eba51ff1244491ee9d0e100a0 |
|
MD5 | 25b8adb6dd7342c85ab619a91fbc2285 |
|
BLAKE2b-256 | 2cf27d93fec294dd9d2292fbee0d05dd75ebe5b34a873c92a2bcb7d474df80c1 |
Close
Hashes for django_material_admin-0.0.17-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c29f33ef16e1532665e7186e27d4bb8575b086fd72814821fbefb319f9008c85 |
|
MD5 | dd183ef3b2777b79eba25d4822c00cd6 |
|
BLAKE2b-256 | c457c5a84781506e3c57c085cde94ef18564c77c1885728a78fa243dec663037 |