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.23.tar.gz
(599.1 kB
view hashes)
Built Distribution
Close
Hashes for django-material-admin-1.6.23.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c91b5bf284e59bf9d1e6541e756f26f0713471bfa1d3bf030dbee086fcd24061 |
|
MD5 | fc9952b7fdc8d3c75caa6c6dfd5185dd |
|
BLAKE2b-256 | c496da4a7807290a95b8451240d884d5311d8aa87f3899d0bcd6606513aafacd |
Close
Hashes for django_material_admin-1.6.23-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 190c7d066a51d18f99dfbcb46d3e3bdffa70795d5c1d6ff71490fc9d4d3b56b6 |
|
MD5 | e07d5466f76fda2028e14e14479d3d02 |
|
BLAKE2b-256 | f06377b1c5624c83d3b030813b7f102ffac6d78f838d8c58ed7db2d453220ddb |