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.32.tar.gz
(604.3 kB
view hashes)
Built Distribution
Close
Hashes for django-material-admin-1.6.32.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7473c1e6586520375d81f0bf1b6dd74ab6fec65ecc4c626928bf040698b3aea4 |
|
MD5 | e77ba70fcc8f1a4d80d29325465fd73a |
|
BLAKE2b-256 | 3288bdff84eb3a4a45b95d4706a9519eb776e51c6a6b42be0b1aae971bc8a3a3 |
Close
Hashes for django_material_admin-1.6.32-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a92952c3f5c3bb8b7621617a025b7d45c16a07b76de4c2f8103f01ee88cb8355 |
|
MD5 | ec22f9864fcce2c0af0a0ae919626d44 |
|
BLAKE2b-256 | 8f00d30da41d8d439440b5ecc78c2a6bd5fe6dd64787812f2e5d9b22f35ff44e |