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.14.tar.gz
(616.6 kB
view hashes)
Built Distribution
Close
Hashes for django-material-admin-1.7.14.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1a1cfe9de7b51128dd8a1e1233d82e3a7b095edae9d9194a20adcd1bd0b8472 |
|
MD5 | 073721600a0c121b5b01e393d5275e21 |
|
BLAKE2b-256 | 49cad4099d4c3da9d7af4e8e2994ed4bf7fbb4f1fde5a88bbd47a60cafe12e3a |
Close
Hashes for django_material_admin-1.7.14-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7fdaae6cf7467e68d03714951420f12b66d6a214fe3e982f67fb3f07b6d1b420 |
|
MD5 | 7bed9bc77fbcf91f57021d46a57f0f0d |
|
BLAKE2b-256 | 0a70a5bac5d2c81754338c25c333b412f8887278b3520798b4443976529f62ec |