Material Design For Django Administration
Project description
Django Material Design Admin
Quick start
-
Add "django-material-admin" to your INSTALLED_APPS setting like this:
.. code-block:: python
INSTALLED_APPS = ( ... 'material', 'django.contrib.admin', ... )
-
Include the material templates URLconf in your project urls.py like this:
.. code-block:: python
urlpatterns = [ path('admin/', include('material.urls')), ]
-
Extend Admin config from
MaterialModelAdmin
.. code-block:: python
from material.options import MaterialModelAdmin from material.decorators import register from persons.models import Person @register(Person) class PersonAdmin(MaterialModelAdmin): list_display = ('name', 'first_name', 'last_name')
or
.. code-block:: python
from material.options import MaterialModelAdmin from material.sites import site from persons.models import Person class PersonAdmin(MaterialModelAdmin): list_display = ('name', 'first_name', 'last_name') site.register(User)
-
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'
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.1.0.tar.gz
(360.4 kB
view hashes)
Built Distribution
Close
Hashes for django-material-admin-1.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5007aaa2addb6910484ef0dbd7e213af6ec185bc5ce6dffe1e2d35be1ffbd450 |
|
MD5 | 7b16d18073dc63a75245f7ec6c875316 |
|
BLAKE2b-256 | df8543a50ebfe1a73d639dbfdf9d1ebc47c602fb36c75ea0cb7a5e0c9dec1cb1 |
Close
Hashes for django_material_admin-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | abc5268c025514f2f8bb32a4be14d077c68336ba11f062217d3aa3d65f036e81 |
|
MD5 | 2a2c2a29bb2b3ac9afafd851d7fd2e76 |
|
BLAKE2b-256 | 631694e9ff1f928a3c0fe0643aa9e78d6dbe5401c584397362be0eb757739b22 |