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.36.tar.gz
(604.3 kB
view hashes)
Built Distribution
Close
Hashes for django-material-admin-1.6.36.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15e7420186f0117b44d8b75353611b5a7ef457afc53d507be085edfb45c4713f |
|
MD5 | e981ec4c9c84ac0ce2d1c9f70903ca10 |
|
BLAKE2b-256 | fe5636920e45094019d27b59f25b775c741a93cb7dfd484aa01ebfcc0725c841 |
Close
Hashes for django_material_admin-1.6.36-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 920361d6074d05796e025126cb0a125bfe1e5497d9f23ca20a1d053c595168bb |
|
MD5 | 3800bae879986a1d3663fc88eaa67b31 |
|
BLAKE2b-256 | e2b7c500b450de24b257a6a6d9a8ad8b7a776fb505174a5586c50e2cab79cc32 |