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.34.tar.gz
(608.4 kB
view hashes)
Built Distribution
Close
Hashes for django-material-admin-1.6.34.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2e87a90276beffccf586c3fd12cab668e3503a9f2a32f49a8451839dadd4f82 |
|
MD5 | 4f18a05ace7e36ae3be324f360f04594 |
|
BLAKE2b-256 | 02b5145c315cfbef52166255935e9e737f09ca38884a2e446e7bab0b13b56995 |
Close
Hashes for django_material_admin-1.6.34-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f63701040832eec082901e7c7d2a53e6567fb61109ff4148e436ddf0cb66c1ac |
|
MD5 | f6a31efb7053baf1874fc9c0191066c2 |
|
BLAKE2b-256 | 430bd4b4925829b8fddabfa368290a009b58b2f0b90fb187db564711c6cb76de |