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
django-material-admin-1.8.2.tar.gz
(650.0 kB
view hashes)
Built Distribution
Close
Hashes for django-material-admin-1.8.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05b81a697178154883bf856e014337e31e43ca7a6bed9dfefc69c30518d3f936 |
|
MD5 | 8e29a5191a5455840ae036370dd15100 |
|
BLAKE2b-256 | 832ca90475c96d0c7623603643503ca129ec96493aa352c45d98696ad2edbf12 |
Close
Hashes for django_material_admin-1.8.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e83b922c1c0fa3b7416a903c7afde382bebe0fa946914b5efaac86f6c84761d2 |
|
MD5 | dbecf0ada7d1d9b5f3e9d03db1f5fa72 |
|
BLAKE2b-256 | ef771f5076ac97a784ee99febccf3b1d99ee1931764bcfd937139768fb68730d |