Skip to main content

a theme for Pinax based on Bootstrap

Project description

http://slack.pinaxproject.com/badge.svg

A theme for Pinax based on the open source Bootstrap front-end framework and the Font Awesome icon library.

Upgrade Notes

Upgrading to 6.0, you should be aware of a few changes:

  • style_base and extra_style blocks have been merged into styles

  • script_base and extra_script blocks have been merged into scripts and the theme.js script is now loaded within a theme_script block after the scripts block. It now expects that you’ll load the necessary jQuery library at the project level in the scripts block.

  • 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.

Dependencies

  • Bootstrap

  • Font Awesome

  • jQuery

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 npm.

Quick Start

Include “pinax-theme-bootstrap” in your requirements file and include “pinax_theme_bootstrap” and “bootstrapform” (which is installed alongside this theme) in your INSTALLED APPS.

Add ‘django.core.context_processors.request’ and “pinax_theme_bootstrap.context_processors.theme” to your TEMPLATE_CONTEXT_PROCESSORS 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.

Your “site_base.html” should extend “theme_bootstrap/base.html” and should provide “footer” and “nav” blocks (the latter should just be a ul of li of a links).

Your pages should have blocks “head_title” and “body” and should extend “site_base.html”.

The url name “home” should be defined as the homepage.

License

The Pinax Bootstrap theme is released under the MIT license.

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

pinax-theme-bootstrap-7.0.0.tar.gz (19.8 kB view details)

Uploaded Source

File details

Details for the file pinax-theme-bootstrap-7.0.0.tar.gz.

File metadata

File hashes

Hashes for pinax-theme-bootstrap-7.0.0.tar.gz
Algorithm Hash digest
SHA256 5e06fd74de545d33971bbd4135325867f951dcecf7979b35b59cd4662dd604db
MD5 bedf52f74be2d9ac498e436579a4d9b1
BLAKE2b-256 31efb3126d81b104d5afcfd2a96b9b2857681a49d88105608871ec18eba19887

See more details on using hashes here.

Provenance

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