Skip to content

adams-okode/django-volt-admin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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).