This aims to be a powerful Django app to ease the integration of the popular Bootstrap UI framework (http://getbootstrap.com).
Project description
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 released under the ISC License (ISCL). It is available on GitHub and follows the guidelines about Semantic Versioning for transparency within the release cycle and backward compatibility whenever possible.
Features
Full-featured Bootstrap 3 template (3.3.5)
Latest Font Awesome integration (4.3.0)
Ready-to-use Bootstrap component templates
Intuitive template tag API for generating valid Bootstrap markup
Extensive and up-to-date documentation
Mainstream Python (2.7, 3.3, 3.4) and Django (1.7, 1.8) support
Outstanding test coverage
Continuously integrated codebase
Installation
First install the package using pip with the --pre option as long as this is a pre-release:
pip install --pre django-bootstrap-ui
Add bootstrap_ui to your INSTALLED_APPS setting:
INSTALLED_APPS = ( ... 'bootstrap_ui', ... )
Usage
Bootstrap template
Prepare your page for Bootstrap and provide your content:
Extend bootstrap-skeleton.html in your base template:
{% extends "bootstrap_ui/bootstrap-skeleton.html" %}
Fill predefined blocks with your content:
{% block body-content %} <h1>Hello, I'm using django-bootstrap-ui!</h1> {% endblock %}
Bootstrap component templates
Render complete Bootstrap components by including our default implementations. Example:
Provide a list of strings ['alpha', 'beta', 'gamma'] as template variable items
Include listgroup.html parameterized with type='list' and items=items:
{% include 'bootstrap_ui/listgroup.html' with type='list' items=items only %}
Template tag API
Generate your own, customized Bootstrap elements using our template tags. Example:
Load bootstrap_ui_tags in your template:
{% load bootstrap_ui_tags %}
Use Bootstrap components through intuitive template tags:
{% listgroup %} {% listgroupitem %} Your raw text. {% endlistgroupitem %} {% listgroupitem %} You may also use a {{ context_variable }}. {% endlistgroupitem %} {% endlistgroup %}
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 %}
Continue reading in our detailed documentation at readthedocs.org.
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 django-bootstrap-ui-0.1.0rc2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f4c6b1afa410ae970fa66ca7a87458eaba8dd1b5f4527a6cde6e0231206318f |
|
MD5 | bc76dfd888bb89c13a34c6696d8f0a29 |
|
BLAKE2b-256 | 33fc6dc6e876173c95e0ad85ea9f53fd03224deaa9c80d358ef1fd9d94282410 |
Hashes for django_bootstrap_ui-0.1.0rc2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef08f81643fd728eaa8aa6327017c06e4c63ef03fed5f40ea499c46533387885 |
|
MD5 | a9da9256088404e8b3b98ec9f98ea431 |
|
BLAKE2b-256 | 759dd880fa585bb46384db7a50d0aef7d32684322a9381480eb6b7fce5830992 |