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.22.tar.gz
(607.9 kB
view hashes)
Built Distribution
Close
Hashes for django-material-admin-1.6.22.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84b6ccbe1943bf9e31466a1db15a8423717efcbf453666994f19ec1239dbd6e0 |
|
MD5 | c71504a7ecdbc87cacf8b963cbbadb6c |
|
BLAKE2b-256 | 449473990087bd7ca57c513e91d028283b94fe9774068608745b6fb9ffda9a71 |
Close
Hashes for django_material_admin-1.6.22-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85b61ba2d33656f3b28d2b62aa2f4100c4306f10bc3f14383e5d49b0c4c0ff10 |
|
MD5 | 204a7ddb972e25d3150744b0ea9b02d5 |
|
BLAKE2b-256 | 4b14c646722882bdfd74ff8fbeffa5770f77315add209ce06395c20766777f3e |