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.21.tar.gz
(358.9 kB
view hashes)
Built Distribution
Close
Hashes for django-material-admin-0.0.21.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fbe5ecf257ea4b24f00aab174c98938f8679c9bb5b64a91cf2b6c4f2dd1fae4f |
|
MD5 | c7dcb39ed147575c3e4fa06adc13068a |
|
BLAKE2b-256 | 985a8d2d3dc620d4b46a1a6ee0067a3a07ff29ce1e0fe17a591f5f233362bf11 |
Close
Hashes for django_material_admin-0.0.21-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5569760a2821d946b3a482707e6298413af3f6734709acea78fe07d9add24b62 |
|
MD5 | 71f521c106958957d650787f4bfe1794 |
|
BLAKE2b-256 | d48b1e55ab7477132026d5cd648887e5e5f856b3a7323a95956ba8795e5f60da |