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.19.tar.gz
(603.3 kB
view hashes)
Built Distribution
Close
Hashes for django-material-admin-1.6.19.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e18f655483c9068904bb4919dc379457f2e08dfee256157f6d2e68562bcd8023 |
|
MD5 | a069b05ae08b32eea954b041cea64924 |
|
BLAKE2b-256 | 566eedf7eb4c7bcfbe7d30d9de82033b2df8d6712dace47a0947af0f6bd11d3b |
Close
Hashes for django_material_admin-1.6.19-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7ce6214ebe4cd3925689701b01b245f2bb2292995aded180d6a0362ffd3559f |
|
MD5 | fb9b2604fb1d36a8e3b8d51b66025159 |
|
BLAKE2b-256 | 454fdc4eb808a2767e341a09ec434a9dd15c2c51fb426aaea05494ea579a2d5f |