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.18.tar.gz
(603.2 kB
view hashes)
Built Distribution
Close
Hashes for django-material-admin-1.6.18.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bcf0c047563b4905f65d1328eb3317e897bc5c3f36963ae96e958e3179461059 |
|
MD5 | 4e05d7e3ab5f739e06a04045aeffc683 |
|
BLAKE2b-256 | b4186a23a54b2726f3256ecb39ecb84f155c1c8432b98e99cdd442bc66c17693 |
Close
Hashes for django_material_admin-1.6.18-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 666f600cc54a039bc2ea3c02685bd7c049031c740a8f77e2c955535d7f59a09f |
|
MD5 | 7ebc0b76c2099038c003cff05b5465d6 |
|
BLAKE2b-256 | 4bdb5b8e197b64b44767e47ab574ffa7f543f6fd20817a5c36cafbe3616e5bfe |