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.0.tar.gz
(589.9 kB
view hashes)
Built Distribution
Close
Hashes for django-material-admin-1.6.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a56a9e6c3531fdbd139f2c457e2286b88a04af560087f82dcd1ca99478f6e226 |
|
MD5 | 1fde0534324dd4a21f44498963134f41 |
|
BLAKE2b-256 | 8f7da5edcd0aecbfa3ec9c5ebab30db85c8d48547f660c4d5b5e4ca7bc31ba49 |
Close
Hashes for django_material_admin-1.6.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e89ac92fcf031275f5be0e8ae4cbaed85ac976a724c9d6b8b2d46221fe13feb |
|
MD5 | 53dded8e7d1917794372572144965f94 |
|
BLAKE2b-256 | c31eac7cf8642f70ec7254601deaf5f47a47f35d01f01df6d8c8967a18c47d87 |