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.20.tar.gz
(603.4 kB
view hashes)
Built Distribution
Close
Hashes for django-material-admin-1.6.20.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c28cfabd65811a2b1a2806ceb18756543b34ebcf8876d4d20941f3372a89b076 |
|
MD5 | dacffa17a12a56362b8ba6f1cf6bdfb2 |
|
BLAKE2b-256 | 26e326c7fc0a98c7fa8f2319266caeeb28f5d75e7be1068bc4dd1509f76a1315 |
Close
Hashes for django_material_admin-1.6.20-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82125b77d9acc6658220e79064b9a8b6c0177cf244dec0b4186fa8ce3a1c46b2 |
|
MD5 | b15f192103e66b18c24342bb2c83086c |
|
BLAKE2b-256 | b4151c75bd819be10f48cdfa6f0faf9cd229e2748936d04517f1cfd129415206 |