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.29.tar.gz
(604.1 kB
view hashes)
Built Distribution
Close
Hashes for django-material-admin-1.6.29.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62bf02a6033a39b7e00203ab20942f701297c21af4a20306e9c6a2e662e54570 |
|
MD5 | 845060d5a6ee33db1b13c0b5d4a3d15b |
|
BLAKE2b-256 | 0012ba15a7d75cae6ecaae61de7426d9cf9de23ecd548ecde861e2fa192ace5c |
Close
Hashes for django_material_admin-1.6.29-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac0a28a3a2a9a0364e291c98f840539ed27a2bb2ce9d6da9d661bf28632b9594 |
|
MD5 | ced90d3be336d85aa042aa84fb870a69 |
|
BLAKE2b-256 | af2c27e8ff06fb87f11620763ee67ba28e6e1d8c59a28d8cfa75846d5b4e92e8 |