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.14.tar.gz
(601.8 kB
view hashes)
Built Distribution
Close
Hashes for django-material-admin-1.6.14.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69992c3fa22fd4d5776427b746c756c34f72149fb8ef5dc5142afd92315a0df8 |
|
MD5 | f067ece3c6a9a32cae7e31fbaeed7e09 |
|
BLAKE2b-256 | 55e1d443750b2c07b104f8a56d821353b3b267cf0cb0f222b9a6bf701a88652e |
Close
Hashes for django_material_admin-1.6.14-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0d90ed7d5926e57ddc2f63ca56f546d100bf177914c2ad2e2af37f3c5d6da9e |
|
MD5 | b80d3edb65d49c9c37bee9c25a75e7a4 |
|
BLAKE2b-256 | 73f0e91b04a1d24215b85242fd11e09f218b254bcbf9298145c2be843af03da8 |