Material Design For Django Administration
Project description
Django Material Admin
Coming soon...
Quick start
-
Add "django-material-admin" to your INSTALLED_APPS setting like this:
.. code-block:: python
INSTALLED_APPS = ( ... 'material', 'django.contrib.admin', ... )
-
Include the material templates URLconf in your project urls.py like this:
.. code-block:: python
urlpatterns = [ path('admin/', include('material.urls')), ]
-
Extend Admin config from
MaterialModelAdmin
.. code-block:: python
from material.options import MaterialModelAdmin from material.decorators import register from persons.models import Person @register(Person) class PersonAdmin(MaterialModelAdmin): list_display = ('name', 'first_name', 'last_name')
or
.. code-block:: python
from material.options import MaterialModelAdmin from material.sites import site from persons.models import Person class PersonAdmin(MaterialModelAdmin): list_display = ('name', 'first_name', 'last_name') site.register(User)
-
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'
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-0.0.23.tar.gz
(359.8 kB
view hashes)
Built Distribution
Close
Hashes for django-material-admin-0.0.23.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e830836c86f580c9412782b0eef392c9ad6bcc598e1f92f1217aa1d5c8e04cf |
|
MD5 | 31f45c887a9650408b028939463b4b01 |
|
BLAKE2b-256 | 11ad8d596838005ef81ecd13488f2ed6aa080abd700a5eee6ca021cf7866883e |
Close
Hashes for django_material_admin-0.0.23-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f188bc1f68e4c0f348bab3a156d6bbb4f4b1e10595e9d864f4b4363d677da90 |
|
MD5 | cc30344eb03df0cb2b265ac48bfd001f |
|
BLAKE2b-256 | 8b0ebc0adec0f2126ba96750332a6700c27c2e33d1b708f2de79b0409c40648f |