Skip to content

Latest commit

 

History

History
54 lines (48 loc) · 1.6 KB

README.md

File metadata and controls

54 lines (48 loc) · 1.6 KB

Django Volt Admin

Django Volt is a django admin customization for https://github.com/themesberg/volt-bootstrap-5-dashboard

Samples

alt text

alt text Quick start

  1. Install

    pip install django-volt-admin
  2. Add "volt" to your INSTALLED_APPS setting like this::

    INSTALLED_APPS = [
        'volt',
        'django.contrib.admin',
        'django.contrib.auth',
        'django.contrib.contenttypes',
        'django.contrib.sessions',
        'django.contrib.messages',
        'django.contrib.staticfiles',
        ...
       
    ]

    ensure that the app is declared before django admin

  3. Include Templates from the volt admin customization

    TEMPLATES = [
        {
            'BACKEND': 'django.template.backends.django.DjangoTemplates',
            'DIRS': [
                BASE_DIR /'volt/templates',
            ],
            'APP_DIRS': True,
            'OPTIONS': {
                'context_processors': [
                    'django.template.context_processors.debug',
                    'django.template.context_processors.request',
                    'django.contrib.auth.context_processors.auth',
                    'django.contrib.messages.context_processors.messages',
                ],
            },
        },
    ]
  4. Start the development server and visit http://127.0.0.1:8000/admin/ to view (you'll need the Admin app enabled).