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.7.8.tar.gz
(615.5 kB
view hashes)
Built Distribution
Close
Hashes for django-material-admin-1.7.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e24f1ba7cef09920c2900c305be55a7bc465a5f7a05c87b4a8e463075abcd87 |
|
MD5 | c49df899e7241d9aff1e03c9f951d99a |
|
BLAKE2b-256 | 1dcce27e90fd4e9a706701e10f625835d2ceaee512ea6e73e4cb87c6237d5a52 |
Close
Hashes for django_material_admin-1.7.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c21b533a2a10cd7eef95fb93c42c6e4781e089a349382550f7caf2e4fe3415d5 |
|
MD5 | 4aa90c99d0fc9274e9f82ef9cc6ddb6e |
|
BLAKE2b-256 | 2c1cc42a84acd197d7f46f9d64aecd419c4fdc8680c096daaee600b8516f6d9b |