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', 'material.admin', '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
Built Distribution
File details
Details for the file django-material-admin-1.8.6.tar.gz
.
File metadata
- Download URL: django-material-admin-1.8.6.tar.gz
- Upload date:
- Size: 678.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.22.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2de97e804a55d478d1776d2fe011970087c6756b5998e528b673fbb6e1f8e5c4 |
|
MD5 | fa48c63f3ea97f8a275a65b8352e9c88 |
|
BLAKE2b-256 | e4648d3ac319bc3c6a31463a4ed95ebbaa04a56830a117e2df82df2f7517a521 |
File details
Details for the file django_material_admin-1.8.6-py3-none-any.whl
.
File metadata
- Download URL: django_material_admin-1.8.6-py3-none-any.whl
- Upload date:
- Size: 737.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.22.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cbd44161c6e8bed8e4fe80a68f90971d22c8a1bc7e731360bec08e6f950917f9 |
|
MD5 | e5e16dc2e89363251910751dabadbc0f |
|
BLAKE2b-256 | e8cdd3700551f6fc6636bcb9951f94b0ac008611e80b7e555a9028a936ae14d9 |