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.17.tar.gz
(603.2 kB
view hashes)
Built Distribution
Close
Hashes for django-material-admin-1.6.17.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9f36b3a8e31c76d5b440c5b7c42ed9d3cc9644c5f6d6b517b6b37cdf400b1a1 |
|
MD5 | 9784205ea481d7cdcc1f3bbaebfe950e |
|
BLAKE2b-256 | 49fc63e41e53ae8c70db9178bfc98f5ecc2bac7a2a25e52eb68e7a39ebedb264 |
Close
Hashes for django_material_admin-1.6.17-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc3f3c9a3953e9e59fac523a30427862bd62ce48e0d66d0ad360d7420ff72df2 |
|
MD5 | 7df66da3710d05640c05a209afd5128c |
|
BLAKE2b-256 | f61912021c613c989459c072d7d99bd8b2bf45e57a5072170fec7123d1d07c43 |