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', 'material.admin', '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
godjango-material-admin-1.8.7.tar.gz
(698.7 kB
view hashes)
Built Distribution
Close
Hashes for godjango-material-admin-1.8.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f0c8a1bb99588f3dffe1522aedb3274cb86e48d04b10fada120ab5f93e5a67d |
|
MD5 | 7131d6503038c3f0fd5f78b30653b821 |
|
BLAKE2b-256 | ca66c3c8032af27ce5e95744d818bb941eb9c50e81deb534a81ac4db4b9ad307 |
Close
Hashes for godjango_material_admin-1.8.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7804d68298ff4b9ac58c9ad63192509fea43aa66506edc3cf4bbc63dee7eb0e9 |
|
MD5 | 238e9e66fd13a36511d105c6e4092ddc |
|
BLAKE2b-256 | 3cfa208fdc602a29a1c9dfd8269103714a49b564a491203a704f511383b0acd3 |