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.31.tar.gz
(608.2 kB
view hashes)
Built Distribution
Close
Hashes for django-material-admin-1.6.31.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ca59a5a98c98e126879085503af8bb2e1377729065e95ed4f22e0c573e5b5ac |
|
MD5 | 97c6de9c2161b82d741b1f755f95aa5d |
|
BLAKE2b-256 | cc3df21373d89464edb6adc5697ac73205993c00fe4f13a5c16df5c425781311 |
Close
Hashes for django_material_admin-1.6.31-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2272f46130a633168b19bf73cddb23dd33c64414640c345363a3cd2e278dbd0d |
|
MD5 | 37db2c507153d5c41a9f7036f367d140 |
|
BLAKE2b-256 | 9662ee3d91fea0f0f4b1e54f251440ac4e24d27148d0896c2a709683592d6631 |