Material Design For Django Administration
Project description
# Django Material Design Admin
Quick start
Add “material.admin” and “material.admin.default” to your INSTALLED_APPS setting instead of “django.contrib.admin”:
INSTALLED_APPS = ( 'material.admin', 'material.admin.default', 'django.contrib.auth', ... )
Include the material templates URLconf in your project urls.py like this:
urlpatterns = [ path('admin/', admin.site.urls), ]
Use the admin with material styles
from django.contrib.admin import ModelAdmin, register from persons.models import Person @register(Person) class PersonAdmin(ModelAdmin): list_display = ('name', 'first_name', 'last_name')
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'
5. Add icon to the MaterialModelAdmin in admin.py https://materializecss.com/icons.html
from django.contrib.admin import ModelAdmin, register from persons.models import Person @register(Person) class MaterialPersonAdmin(ModelAdmin): 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-1.6.40.tar.gz
(599.7 kB
view hashes)
Built Distribution
Close
Hashes for django-material-admin-1.6.40.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 460e0e708e8e06db767aac2df3d93990f6752ace4b212e8b56a2840a9e0b17a0 |
|
MD5 | 7b7574febca2c6b84590101944e5c0ab |
|
BLAKE2b-256 | 70804e5ed1818f2ef25165685c1acf9b1101e5cc1868431b4d5f6c731d956289 |
Close
Hashes for django_material_admin-1.6.40-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0d1b68b1a8e4a7309cf3bdb20a5fedf02110db5a1acb42e809a11b20e378ba0 |
|
MD5 | 7428cbc6cf2bd7fdfc37c41323280959 |
|
BLAKE2b-256 | 64f33aa64aa24bf61c089d05da1f2d36c130fe2303bca89b51897304a3421226 |