Skip to main content

Use Twitter's Bootstrap CSS framework to build your app. All the views Bambu uses all extend a base template which you create, that can be based on a skeleton Bootstrap template. Shortcut tags let you easily add breadcrumb trails and icons to your apps.

Project description

Use Twitter’s Bootstrap CSS framework to build your app. All the views Bambu uses all extend a base template which you create, that can be based on a skeleton Bootstrap template. Shortcut tags let you easily add breadcrumb trails and icons to your apps.

About Bambu Bootstrap

Bambu Tools is a set of reusable Django apps and utility packages that help prototyping and building web apps easier. To a degree, this starts with the front-end scaffolding. Bambu Bootstrap provides a base template along with a set of useful tags and filters that make building web apps using this framework easier.

Installation

Install the package via Pip:

pip install bambu-bootstrap

Add it to your INSTALLED_APPS list and add Bootstrap and Font-Awesome to your BOWER_INSTALLED_APPS list (see the django-bower documentation) for details on managing static files through Bower.

INSTALLED_APPS = (
    ...
    'djangobower',
    'bambu_bootstrap'
)

BOWER_INSTALLED_APPS = (
    ...
    'bootstrap',
    'fontawesome'
)

Remember to run python manage.py bower install and python manage.py collectstatic.

Basic usage

Within your project, start with a template called base.html. This should extend the Bootstrap base template,, at bootstrap/base.html.

Use the extra_head block to specify stylesheets or script tags that must, by necessity live in the head of your document.

Use the content block for the main content of your page.

Use the javascript block to specify JavaScript that can run at the very bottom of the page.

Documentation

Full documentation can be found at ReadTheDocs.

Questions or suggestions?

Find me on Twitter (@iamsteadman) or visit my blog.

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

bambu-bootstrap-2.0.tar.gz (12.8 kB view details)

Uploaded Source

File details

Details for the file bambu-bootstrap-2.0.tar.gz.

File metadata

File hashes

Hashes for bambu-bootstrap-2.0.tar.gz
Algorithm Hash digest
SHA256 901e8ebea37627b9b7a0fbf470313784fdbb332567283d1de531ca49f6cb7775
MD5 e7e57a543b5339d7c917bfc674f3553e
BLAKE2b-256 a39badb91d80fdfcfae51eb62b604f2eae22e1da4d137ec5a3aa2804d93f1a45

See more details on using hashes here.

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