Pinax Theme Bootstrap
Pinax is an open-source platform built on the Django Web Framework. It is an ecosystem of reusable Django apps, themes, and starter project templates. This collection can be found at http://pinaxproject.com.
pinax-theme-bootstrap is a theme for Pinax based on the open source Bootstrap front-end framework and
the Font Awesome icon library.
pinax-theme-bootstrap in your requirements file and include
bootstrapform (which is installed alongside
this theme) in your
pinax_theme_bootstrap.context_processors.theme to your
to ensure the user selector and site name work correctly.
Make sure both template loaders and staticfiles finders includes app directories.
Site name comes from Sites fixture.
site_base.html should extend
theme_bootstrap/base.html and should provide
nav blocks (the latter should just be a ul of li of a links).
Your pages should have blocks
body and should extend
The url name
home should be defined as the homepage.
- Font Awesome
We previously vendored these packages and had an undocumented build process pre-configured in our starter projects that use this theme. This has gone the way of the 80s hair band and we are now using proper packaging in the starter projects.
The templates in this project are currently tested with the following versions:
- Bootstrap 3.3.5
- Font Awesome 4.4.0
- jQuery 2.1.4
If you are not using one of our starter projects, you will need to go about
setting up a build environment to use these libraries. We recommend using
webpack and installing these libraries with
Upgrading to 6.0, you should be aware of a few changes:
extra_styleblocks have been merged into
extra_scriptblocks have been merged into
theme.jsscript is now loaded within a
theme_scriptblock after the
scriptsblock. It now expects that you'll load the necessary
jQuerylibrary at the project level in the
- No vendored assets ship with the theme anymore. You are responsible for setting up your own static assets at the project level. We have made it easy by just using one of our starter projects.
The pinax-theme-bootstrap documentation is currently under construction. If you would like to help us write documentation, please join our Slack channel and let us know! The Pinax documentation is available at http://pinaxproject.com/pinax/.
The Pinax Bootstrap theme is released under the MIT license.
Code of Conduct
In order to foster a kind, inclusive, and harassment-free community, the Pinax Project has a code of conduct, which can be found here http://pinaxproject.com/pinax/code_of_conduct/.
Pinax Project Blog and Twitter
For updates and news regarding the Pinax Project, please follow us on Twitter at @pinaxproject and check out our blog http://blog.pinaxproject.com.