Skip to main content

Responsive Theme for Django Admin (Django 1.7)

Project description

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bootstrap_admin-0.3.7.1.tar.gz (192.4 kB view hashes)

Uploaded Source

Built Distribution

bootstrap_admin-0.3.7.1-py2-none-any.whl (213.6 kB view hashes)

Uploaded Python 2

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page