Responsive Theme for Django Admin (Django 1.7)
Project description
Ingredients
New design, templates from Django 1.7+, Bootstrap 3 and Coffee.
Screenshots
INSTALL
from pypi (recommended)
$ pip install bootstrap-admin
from github master branch
$ pip install git+https://github.com/django-admin-bootstrap/django-admin-bootstrap
or clone the master branch in your machine
$ git clone https://github.com/django-admin-bootstrap/django-admin-bootstrap
And don’t forget to add bootstrap_admin in INSTALLED_APPS before the django.contrib.admin.
Example:
INSTALLED_APPS = (
# ...
'bootstrap_admin', # always before django.contrib.admin
'django.contrib.admin',
# ...
)
For Sidebar Menu in Django 1.7 only (List of apps and models) (RECOMMENDED):
from django.conf import global_settings
TEMPLATE_CONTEXT_PROCESSORS = global_settings.TEMPLATE_CONTEXT_PROCESSORS + (
'django.core.context_processors.request',
)
BOOTSTRAP_ADMIN_SIDEBAR_MENU = True
For Sidebar Menu in Django 1.8 be sure to have the correct TEMPLATES settings with the correct request template processor loaded ‘django.template.context_processors.request’ :
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
Extensions
Contributing
Fork it!
Create your feature branch: git checkout -b my-new-feature
Commit your changes: git commit -am 'Add some feature'
Push to the branch: git push origin my-new-feature
Submit a pull request =]
See the full list of contributors.
Open an issue if you find a bug or want something more.
TODO
Docs
Improve Sidebar menu
If you want to install the old version, just install with pip. (See the old README)
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
Built Distribution
Hashes for bootstrap_admin-0.3.7-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01faf311f28515479a970d0ed20a48a99b350243711309c7f2a6bdb32b714b8f |
|
MD5 | fa160db0df1d0f2cb04aa9873206601e |
|
BLAKE2b-256 | a843b1e1f90e5eafaa4ea0eb95a8ef6033971bfdfe7ff468c2f6b4dfa19182a8 |