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.5.tar.gz
(599.5 kB
view hashes)
Built Distribution
Close
Hashes for django-material-admin-1.6.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 871cafd2cf19d5625bb2f86ad8172f88be7a4b00cc65806dfbfc63a82ba49c0c |
|
MD5 | 4a82ddf25c05f544c1af6aee549f3990 |
|
BLAKE2b-256 | 81485e37504ea5af649f6e64c986cc38a8a83e8d309587240bd25147f777d24f |
Close
Hashes for django_material_admin-1.6.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6927787b11eb9fd813ecb2fab46759aca57045a00efd9e39f27968ed86d6c82d |
|
MD5 | d630153e6eceb77d74718fd3d30ad110 |
|
BLAKE2b-256 | 967c426b28b71cdfcfaad49fe339a0d341e31b3141e8a255407e4a3e5bbd14e9 |