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":
.. code-block:: python
INSTALLED_APPS = ( 'material.admin', 'material.admin.default', 'django.contrib.auth', ... )
-
Include the material templates URLconf in your project urls.py like this:
.. code-block:: python
urlpatterns = [ path('admin/', admin.site.urls), ]
-
Use the admin with material styles
.. code-block:: python
from django.contrib.admin import ModelAdmin, register from persons.models import Person @register(Person) class PersonAdmin(ModelAdmin): list_display = ('name', 'first_name', 'last_name')
-
Add icon to the application in
app.py
https://materializecss.com/icons.html.. code-block:: python
from django.apps import AppConfig class PersonsConfig(AppConfig): name = 'persons' icon_name = 'person'
-
Add icon to the MaterialModelAdmin in
admin.py
https://materializecss.com/icons.html.. code-block:: python
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.9.tar.gz
(601.5 kB
view hashes)
Built Distribution
Close
Hashes for django-material-admin-1.6.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 159bc6a41f84e2842cdc1755bbdd23429bf9c49659950a777e8c69ec969e79c9 |
|
MD5 | da1207abbf62ed6bacd84c03cb2295f3 |
|
BLAKE2b-256 | 5eaba73647d4fdb6bc0751960158419f079d5cdfe8bdda61019745b3204088b4 |
Close
Hashes for django_material_admin-1.6.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4a788787728a691521fe9cbef2f71c59da6a122e417daefdf1f039dbae22b37 |
|
MD5 | 2608816e768e4daf06aaf7602606e698 |
|
BLAKE2b-256 | 51d36bd7fdddf5e3ffa19a5fecc1da11eb301043d555f8f0329b33e9729df29e |