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 %}
    

Project details


Download files

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

Files for django-bootstrap-ui, version 0.1.0a5
Filename, size File type Python version Upload date Hashes
Filename, size django_bootstrap_ui-0.1.0a5-py2.py3-none-any.whl (5.9 kB) File type Wheel Python version 2.7 Upload date Hashes View
Filename, size django-bootstrap-ui-0.1.0a5.tar.gz (3.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page