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.22.tar.gz
(358.9 kB
view hashes)
Built Distribution
Close
Hashes for django-material-admin-0.0.22.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d340f38f4da17c6df8805a56e1add6eec7f9937b198e99f442ef98bd64f8ccf6 |
|
MD5 | 5e9e688a5f534e88a8b1931d6fe43cd3 |
|
BLAKE2b-256 | 4c3e685ee1a33b700460caff46fd1ad4303faf2cd9c645cb31b060154eb6514c |
Close
Hashes for django_material_admin-0.0.22-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59f0ccbfda4d24752072f641da5de902df1250f945eb7d38af32e5623cdcda1f |
|
MD5 | 37bf7e2aafdeffa459720e1c61f0ec89 |
|
BLAKE2b-256 | 0b10819a2c4507fcedf8cba618f136d28988f2905b367ac76deff4a9aa13c12a |