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.1.tar.gz
(604.0 kB
view hashes)
Built Distribution
Close
Hashes for django-material-admin-1.7.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5baef294168afa1bae4498fbe39b2ad119eacc92963216fb0795d9eab834e858 |
|
MD5 | a956956f38ff9309e9e658fcb4ef37d5 |
|
BLAKE2b-256 | 54555a5f5e0e3daff7b96436ba6de3bf606c7e7c39149190a8f3fdc7d56fd329 |
Close
Hashes for django_material_admin-1.7.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa83c6e481679a9772626934949a34e3fc6a24407c34a2c53925c55d07df5684 |
|
MD5 | 208ffe56931cc56b1ed3affdcd8f4522 |
|
BLAKE2b-256 | 71f75b9f6b2794fba274561590ac064362080828f0cecdc624281aad1fa29441 |