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.12.tar.gz
(601.6 kB
view hashes)
Built Distribution
Close
Hashes for django-material-admin-1.6.12.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cdc194084d6dd2b7ef9c393703dd84e6a60f59ae5f8bb0983c3a78c647b2c0b0 |
|
MD5 | 5134b98eeb1d5f8395b4e75c1c4daa5a |
|
BLAKE2b-256 | 66eb57405e39e1677db48ffe1feae3dafacf8edede696e39dde40375185b4e3d |
Close
Hashes for django_material_admin-1.6.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b6e5d5c39735368d43d5e1c92a5d4357c1af0c09bf5ade1b48b75cd32266a28 |
|
MD5 | 1a01386ae4c69b34dd0d3e24b7d698e3 |
|
BLAKE2b-256 | 1567d86b49fd099639dd0550ead43252e754fbb099103a9c23e7aebf54e24d47 |