Skip to main content

Material Design For Django Administration

Project description

Django Material Design Admin

Quick start

  1. 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',
         ...
     )
    
  2. Include the material templates URLconf in your project urls.py like this:

    .. code-block:: python

     urlpatterns = [
         path('admin/', admin.site.urls),
     ]
    
  3. 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')
    
  4. 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'
    
  5. 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.6.tar.gz (678.1 kB view details)

Uploaded Source

Built Distribution

django_material_admin-1.8.6-py3-none-any.whl (737.4 kB view details)

Uploaded Python 3

File details

Details for the file django-material-admin-1.8.6.tar.gz.

File metadata

  • Download URL: django-material-admin-1.8.6.tar.gz
  • Upload date:
  • Size: 678.1 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for django-material-admin-1.8.6.tar.gz
Algorithm Hash digest
SHA256 2de97e804a55d478d1776d2fe011970087c6756b5998e528b673fbb6e1f8e5c4
MD5 fa48c63f3ea97f8a275a65b8352e9c88
BLAKE2b-256 e4648d3ac319bc3c6a31463a4ed95ebbaa04a56830a117e2df82df2f7517a521

See more details on using hashes here.

File details

Details for the file django_material_admin-1.8.6-py3-none-any.whl.

File metadata

  • Download URL: django_material_admin-1.8.6-py3-none-any.whl
  • Upload date:
  • Size: 737.4 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for django_material_admin-1.8.6-py3-none-any.whl
Algorithm Hash digest
SHA256 cbd44161c6e8bed8e4fe80a68f90971d22c8a1bc7e731360bec08e6f950917f9
MD5 e5e16dc2e89363251910751dabadbc0f
BLAKE2b-256 e8cdd3700551f6fc6636bcb9951f94b0ac008611e80b7e555a9028a936ae14d9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page