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.7.tar.gz
(602.3 kB
view hashes)
Built Distribution
Close
Hashes for django-material-admin-1.6.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bac9bc8fe47db73e8ed7802174cc7a0fb3ed50330df03ea9cdb4251f3e9b3afc |
|
MD5 | 2445ab289e2e601dbd91e192482c297b |
|
BLAKE2b-256 | e82d4918d60fc4e448f636da124d29b915f84678d72deb8b6bb3bbf9a3a22d59 |
Close
Hashes for django_material_admin-1.6.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e90ff6b75c30ba12da7fce5c78e24cd69ffd0508300e8748aca886885ce10cec |
|
MD5 | 69173c4d3e082b4e06093fffc1e65fad |
|
BLAKE2b-256 | 99fbfe53222986bccc60937a9e61935dda63e916ae66053cc82c07b54e00e77b |