Django-admin-bootstrap
docker>Evan2017年3月30日 (四) 12:34的版本
bootstrap-admin
1 install
pip install bootstrap-admin
2 config
vi mysite/settings.py #And don't forget to add bootstrap_admin in INSTALLED_APPS before the django.contrib.admin. INSTALLED_APPS = ( # ... 'bootstrap_admin', # always before django.contrib.admin 'django.contrib.admin', # ... ) from django.conf import global_settings TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [ # insert your TEMPLATE_DIRS here ], 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [ # Insert your TEMPLATE_CONTEXT_PROCESSORS here or use this # list if you haven't customized them: 'django.contrib.auth.context_processors.auth', 'django.template.context_processors.debug', 'django.template.context_processors.i18n', 'django.template.context_processors.media', 'django.template.context_processors.static', 'django.template.context_processors.tz', 'django.contrib.messages.context_processors.messages', 'django.template.context_processors.request' ] }, }, ] BOOTSTRAP_ADMIN_SIDEBAR_MENU = True
参考
https://github.com/django-admin-bootstrap/django-admin-bootstrap