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.3.tar.gz
(601.2 kB
view hashes)
Built Distribution
Close
Hashes for django-material-admin-1.6.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63fdeb0fd8b7047f2c536c9072a2c0a3510b263b979ce821b7687d1c9dd6e3c5 |
|
MD5 | 401f7cf1d72f334c54a762ef8b7f2637 |
|
BLAKE2b-256 | e9562bd6d04c88688282a27a3fd33a835c21b11ff4a05b37ffe68c3d4612a374 |
Close
Hashes for django_material_admin-1.6.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a75e44da77b81add526ca854efb3a215cff33b536f487c7ae2117073229f16d8 |
|
MD5 | 1c20f8e2309af91808618d661e65df45 |
|
BLAKE2b-256 | e028fefff565115bbf5d4dbeb93c9c4eb2a669f9edf9fab87a0daf6ab65a8046 |