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.4.tar.gz
(601.2 kB
view hashes)
Built Distribution
Close
Hashes for django-material-admin-1.6.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2dc6ccf1242eadadd7e634cbabd0c49694c7099834e77ad3dc87931cdcaf855c |
|
MD5 | aeca162c50545030707cf7ac75a1a1c7 |
|
BLAKE2b-256 | 5635f7e5004bc0c092ee0d6a0273e6d90fc448b37ecda39a9bf4507532034949 |
Close
Hashes for django_material_admin-1.6.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b95eb7f5ee8fd71480679e64125c3050771e18a5437d62758d9b7a36800bd362 |
|
MD5 | 4f01082134b74ac302a70922f8789347 |
|
BLAKE2b-256 | 4f17f018c32a276382fd2925a2f09d06dc7e77151e4276c680d69080f30ccb99 |