This is where the main heart of Bambu Bootstrap can be found.
These two templates handle Django’s 404 and 500 error pages in a friendly manner. They’re meant to be copied and messed with, so grab them from the source code and amend them, or just roll your own.
A Bootstrap-themed 404 Not Found page.
A Bootstrap-themed 500 Internal Server Error page.
See the Forms section for more information.
An individual field row, with error checking and handling of various different styling scenarios.
A rendered form, using the context variable
form. By default the form is rendered in Bootstrap’s
‘vertical’ style, but you can use the horizontal style by adding
style='horizontal' in your include
non_field_errors: A list of general form errors, not relating to specific fields, rendered using Bootstrap’s alert classes.
fields: The list of fields (except for the
DELETEfield, ie: when used as part of a fieldset). By default, this block is rendered by looping through the visible fields in the form and including the
fieldset: Houses the
DELETEfield for a form within a formset
hidden_fields: The remaining, invisible fields of the form
Here are a few miscellaneous elements
The engine room. This template includes the HTML5 doctype and tags. Your own base template should extend this one, using blocks to fill in the content.
title: The title tag for a page (see the
bootstrap_titletemplate tag for more information)
meta_tags: The meta tags for a page
extra_head: Where your base template should place its
after_header: The first thing displayed after the navigation bar
messages: The block that includes the
breadcrumb_trail: The block that includes the
content: Where the main page content lives
page_header: The content for the Bootstrap
form_content: The primary (left-hand) column of content
sidebar: The (right-hand) sidebar
form_footer: The element to display after the form-content and sidebar
pre_footer: Appears straight after the main content block
footer: Appears inside a
<footer>tag, and includes the
Bootstrap-themed alert boxes for messages generated by
Includes the jQuery and Bootstrap script tags. Use the BOOTSTRAP_JS_URL setting to provide your own Bootstrap script.
Includes the Bootstrap and Font Awesome CSS link tags Use the BOOTSTRAP_CSS_URL setting to provide your own Bootstrap theme.