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.25.tar.gz
(599.3 kB
view hashes)
Built Distribution
Close
Hashes for django-material-admin-1.6.25.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51c968b09a11abf431a0755fc7dafddf429bc748df8530912887a92b16263f04 |
|
MD5 | 9856360e49447758f8a981d7c098a2ca |
|
BLAKE2b-256 | 0df2586ea8edc5c7775541c28f0dc9ab7e0335f565b7befbba6fe23f1fde0f46 |
Close
Hashes for django_material_admin-1.6.25-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 147e12e075ac6af96ca157bc67a9987f7a811325a8961f579951b38d647fef3d |
|
MD5 | 57e3a72e3b981d28051cd13e40576fea |
|
BLAKE2b-256 | 0c4d23ee39d0ce12f06ac25f8e6c304ef13bfeac50eaaefedd22715a9b8e5ab8 |