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.16.tar.gz
(357.2 kB
view hashes)
Built Distribution
Close
Hashes for django-material-admin-0.0.16.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68bdb2021821ee93346a883c75516c9fe81a25f4abf671f208e0f37e8dfc320b |
|
MD5 | c1ea0ac7371f7dff0dcafa95b0f9fafe |
|
BLAKE2b-256 | aa209c7642e9eb55698e1a06e15a539bc8b2dad04754a99e9d35e0235b66a623 |
Close
Hashes for django_material_admin-0.0.16-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44ab33e01215c448a11f6648fb72feaf2026cabf58833c30c6681e6221375f47 |
|
MD5 | fa6028441f4ac10103a3530ca9fdec49 |
|
BLAKE2b-256 | 17b98e3167ffb71b805401f15f909f4cc9ce748b09d12b8b61089ef5d4b516fa |