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.7.9.tar.gz
(616.6 kB
view hashes)
Built Distribution
Close
Hashes for django-material-admin-1.7.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27eb0faacc6d5253d27bc97ffe0346bbcf83ff5b3a015e0509eaecfc82d2bfb6 |
|
MD5 | 8189d647f664e97f293c9c1e7cd77d7c |
|
BLAKE2b-256 | 72d8ae7715bb5350c03920dfaa7d92daea12c30b0b96fc68615748025aca0ca1 |
Close
Hashes for django_material_admin-1.7.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e832ca5049dc64efba9ac0f119afbb6fd5a5ee175c99581dc5641db77a5eda0 |
|
MD5 | a95713929afc93ac4f5a00d2d9da94bd |
|
BLAKE2b-256 | a12e0bbf14651d671e26a9f7e1d9ddd5a6d3d232dd4ac94159de21c8d3f4d455 |