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.33.tar.gz
(608.4 kB
view hashes)
Built Distribution
Close
Hashes for django-material-admin-1.6.33.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba6761fc9a6ff241524a1429feb1fe024b176d5c47f95be995cbbb79396e69a9 |
|
MD5 | 0d349dc61394190dcdbdce370f67c408 |
|
BLAKE2b-256 | 6e7ab238fbe32622bf2853664d3d0afca161f03314f4df03ca47815d132bc5ee |
Close
Hashes for django_material_admin-1.6.33-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6706ad53b20d28dffc7470a12e3beedcd34f501388912ad43172c320e952bfdf |
|
MD5 | b9de0478e2d5b0424fd17479a7bfd84c |
|
BLAKE2b-256 | 289ef54ba239c352e2a76fc8969958924350d64ad3b11e102afacb805793331e |