Skip to content

mariusionescu/console_admin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Django Admin Theme

Credit

This admin theme is inspired by https://github.com/douglasmiranda/django-admin-bootstrap so most of the credit goes to @douglasmiranda.

Installation

git clone https://github.com/mariusionescu/console_admin.git
cd console_admin
python setup.py install

Configuration

Add 'console_admin' in INSTALLED_APPS, before Django Admin:

INSTALLED_APPS = (
    'console_admin',
    ...
)

Add 'django.core.context_processors.request' to TEMPLATE_CONTEXT_PROCESSORS:

TEMPLATE_CONTEXT_PROCESSORS = (
    ....
    'django.core.context_processors.request',
    ...
)

Add in your settings.py:

ADMIN_MENU = [
    {
        'name': 'Menu entry name',
        'models': [
            'DjangoModel',
            'AnotherDjangoModel',
            # Or you can add an external (or internal) URL:
            # ('URL', 'https://google.com/')
        ],
        'icon':'icon-stack'
    }
]
BOOTSTRAP_ADMIN_SIDEBAR_MENU = True
CONSOLE_ADMIN_APP_NAME = 'My Application'
CONSOLE_ADMIN_APP_LOGO_URL = '/static/img/logo.png'

About

Django Admin Theme

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published