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 from persons.models import Person @register(Person) class PersonAdmin(MaterialModelAdmin): list_display = ('name', 'first_name', 'last_name')
or
from material.options import MaterialModelAdmin from material.sites import site from persons.models import Person 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.18.tar.gz
(358.1 kB
view hashes)
Built Distribution
Close
Hashes for django-material-admin-0.0.18.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b093be58153a988d335d68a7b65f2e2507a21e18de1d93679bb5a471eee9c6f8 |
|
MD5 | 3ce28f6d6d6df00e936374f795770239 |
|
BLAKE2b-256 | e257c653af2f8f61e4a884ff20a70da88ae3c4ce0f00c13ab05b1700f49fd116 |
Close
Hashes for django_material_admin-0.0.18-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a111a144a603d963dea60d829d9e6f3fe759cb3aba9aad6428fbf218c1f1d3b |
|
MD5 | b7ccdb7149c0c99e89ea2c429fbf5a41 |
|
BLAKE2b-256 | 44f1de7e5261127fc33b72051b10d2b9091c764465ff6da27340e465daf3bcce |