elzaresen / django-admin-bootstrap

Responsive Theme for Django Admin (Django 1.7+)

Home Page:https://github.com/douglasmiranda/django-admin-bootstrap

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Responsive Theme for Django Admin (Django 1.7+)

Downloads

Ingredients

New design, templates from Django 1.7+, Bootstrap 3 and Coffee.

Screenshots

See Screenshots

More 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

FeinCMS

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. 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)

About

Responsive Theme for Django Admin (Django 1.7+)

https://github.com/douglasmiranda/django-admin-bootstrap

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:HTML 91.0%Language:Python 8.6%Language:Makefile 0.4%