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.38.tar.gz
(604.2 kB
view hashes)
Built Distribution
Close
Hashes for django-material-admin-1.6.38.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | de343940b85cf50548b2dbae9c22228a6d123061502243f7dc41109a9cbf07a8 |
|
MD5 | c6cb3fcc84154e51914238833819c1a4 |
|
BLAKE2b-256 | 65d0317c38b866813e56a2bc03e912cdb0a1fcc76efce540647db3aaceeaa3ba |
Close
Hashes for django_material_admin-1.6.38-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef2bf627e9eef367e48a038df2d79155cbf0b44e553768997b0745fbca7aea13 |
|
MD5 | df34834d25c7853ae911a9e80627b83f |
|
BLAKE2b-256 | 9c87f6bb373108177337d5ec4628b450f66a6cbf0e096367896d1c0798d60827 |