Material Design For Django Administration
Project description
Django Material Design Admin
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-1.0.2.tar.gz
(360.4 kB
view hashes)
Built Distribution
Close
Hashes for django-material-admin-1.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c7471bb129145d323d2a9f3a1d75a36be8ba8292981ef51872f565920208e7f |
|
MD5 | 1f7a99bd7351fd123b8ab0fa1a3cd1e2 |
|
BLAKE2b-256 | ba6768e58518429b4a8ae5641b5007cf43a1fdf8efbd7e17865e51e2d53c7ffa |
Close
Hashes for django_material_admin-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f5446f6fda2c6929e172eacd4fcf963e56b934c56a5c117a5e26b57977f69ba |
|
MD5 | 94a5213f9822aa61975ad945a852755b |
|
BLAKE2b-256 | 9d45dad63f6528858e3f4f138bd8fa56e32e238b75b5885bd37c4b7fdce15d0e |