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.pyhttps://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.pyhttps://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'
Metadata
Release files for django-material-admin 1.8.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-material-admin-1.8.6.tar.gz | 678.1 kB | Without provenance | Details for django-material-admin-1.8.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_material_admin-1.8.6-py3-none-any.whl | Python 3 | none | any | Details for django_material_admin-1.8.6-py3-none-any.whl |
Total release size: 1.4 MB
Release files / django-material-admin-1.8.6.tar.gz
| Download URL | django-material-admin-1.8.6.tar.gz |
|---|---|
| Size | 678.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2de97e804a55d478d1776d2fe011970087c6756b5998e528b673fbb6e1f8e5c4
|
|
BLAKE2b-256 checksum How to use checksums |
e4648d3ac319bc3c6a31463a4ed95ebbaa04a56830a117e2df82df2f7517a521
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.0 requests/2.22.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.10
|
Release files / django_material_admin-1.8.6-py3-none-any.whl
| Download URL | django_material_admin-1.8.6-py3-none-any.whl |
|---|---|
| Size | 737.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cbd44161c6e8bed8e4fe80a68f90971d22c8a1bc7e731360bec08e6f950917f9
|
|
BLAKE2b-256 checksum How to use checksums |
e8cdd3700551f6fc6636bcb9951f94b0ac008611e80b7e555a9028a936ae14d9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.0 requests/2.22.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.10
|
Security for django-material-admin 1.8.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.