Skip to main content

This aims to be a powerful Django app to ease the integration of the popular Bootstrap UI framework (http://getbootstrap.com).

Project description

https://img.shields.io/travis/timorieber/django-bootstrap-ui.svg https://img.shields.io/coveralls/timorieber/django-bootstrap-ui/master.svg https://img.shields.io/pypi/v/django-bootstrap-ui.svg https://img.shields.io/pypi/l/django-bootstrap-ui.svg https://readthedocs.org/projects/django-bootstrap-ui/badge/

django-bootstrap-ui aims to be a powerful Django app to ease the integration of the popular Bootstrap UI framework. It is written in Python and built on the Django web framework.

The code is open source, and available on GitHub.

Getting started

  1. First install the package using pip with the --pre option as long as this is a pre-release:

    pip install --pre django-bootstrap-ui
  2. Add bootstrap_ui to your INSTALLED_APPS setting:

    INSTALLED_APPS = (
        ...
        'bootstrap_ui',
        ...
    )
  3. Load bootstrap_ui_tags in your template:

    {% load bootstrap_ui_tags %}
  4. Use bootstrap components through intuitive template tags:

    {% listgroup %}
        {% listgroupitem %}
            Your raw text.
        {% endlistgroupitem %}
        {% listgroupitem %}
            You may also use a {{ context_variable }}.
        {% endlistgroupitem %}
    {% endlistgroup %}
  5. Some bootstrap components support different html tags, to change the default add a parameter:

    {% listgroup use_tag="div" %}
        ...
        Your list group content goes here.
        ...
    {% endlistgroup %}

Available bootstrap components

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

django-bootstrap-ui-0.1.0a4.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

django_bootstrap_ui-0.1.0a4-py2-none-any.whl (5.9 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