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
django-material-admin-1.8.1.tar.gz
(650.0 kB
view hashes)
Built Distribution
Close
Hashes for django-material-admin-1.8.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c8039e7191c0461d3302ab4eff9f57c78cac78dfc20944c05ec2355021579a0 |
|
MD5 | d836165e122ce4702b094461d69e6c97 |
|
BLAKE2b-256 | ecadb41d508dfe0509b820f4108dd6486967d10c9a53af4bfa04b3f8ff5529b9 |
Close
Hashes for django_material_admin-1.8.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f971ff48a3027ff192f7e47473ad2944626eb71672a9f638edbdaa6a94f9f0bc |
|
MD5 | c56de91fbf255f9a96100bbf6c176874 |
|
BLAKE2b-256 | 23a76d79d000e09256696d36ecd5f96894e222c10490bfa3638e6eb5e2319f6a |