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.3.tar.gz (677.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_material_admin-1.8.3-py3-none-any.whl (736.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django-material-admin-1.8.3.tar.gz
  • Upload date:
  • Size: 677.5 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.5

File hashes

Hashes for django-material-admin-1.8.3.tar.gz
Algorithm Hash digest
SHA256 69aa2d462c058410b749094eac2a5c92b7462e0193fe694dfb063f91eff235f5
MD5 5627c830d7ab70ca8d7774901ac65abc
BLAKE2b-256 7833215230a5d98c8a62019e5230f484c93b01c8ade9cf2f73ffb5f2530f9be4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: django_material_admin-1.8.3-py3-none-any.whl
  • Upload date:
  • Size: 736.9 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.5

File hashes

Hashes for django_material_admin-1.8.3-py3-none-any.whl
Algorithm Hash digest
SHA256 fa0b645869a6ec7a01a899a7df7ac74d368bbb243050c6084218ec8de56f9806
MD5 45379751d656670b315f6971830d5fd9
BLAKE2b-256 777bdcde4b4e80755bfbfdba091ae37b6ee6e7a990fb43b60f1e97386dd47182

See more details on using hashes here.

Supported by

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