Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install pinax-theme-bootstrap

How to install pinax-theme-bootstrap

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install pinax-theme-bootstrap
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
2.0.3
3.0a12Never BuiltWhy not?
2.0.3 Available View build log
2.0.2 Available View build log
2.0.1.1 Available View build log
2.0.1 Available View build log
0.2.1 Available View build log
0.2 Available View build log
0.2b2 Available View build log
0.2a1 Failed View build log
0.1.5 Available View build log
0.1.4 Available View build log
0.1.3 Available View build log
0.1.2 Available View build log
Windows (64-bit)
2.0.3
3.0a12Never BuiltWhy not?
2.0.3 Available View build log
2.0.2 Available View build log
2.0.1.1 Available View build log
2.0.1 Available View build log
0.2.1 Available View build log
0.2 Available View build log
0.2b2 Available View build log
0.2a1 Failed View build log
0.1.5 Available View build log
0.1.4 Available View build log
0.1.3 Available View build log
0.1.2 Available View build log
Mac OS X (10.5+)
2.0.3
3.0a12Never BuiltWhy not?
2.0.3 Available View build log
2.0.2 Available View build log
2.0.1.1 Available View build log
2.0.1 Available View build log
0.2.1 Available View build log
0.2 Available View build log
0.2b2 Available View build log
0.2a1 Failed View build log
0.1.5 Available View build log
0.1.4 Available View build log
0.1.3 Available View build log
0.1.2 Available View build log
Linux (32-bit)
3.0a11
3.0a12Never BuiltWhy not?
3.0a11 Available View build log
2.2.2 Available View build log
2.2.1 Available View build log
2.0.3 Available View build log
2.0.2 Available View build log
2.0.1.1 Available View build log
2.0.1 Available View build log
0.2.1 Available View build log
0.2 Available View build log
0.2b2 Available View build log
0.2a1 Failed View build log
0.1.5 Available View build log
0.1.4 Available View build log
0.1.3 Available View build log
0.1.2 Available View build log
Linux (64-bit)
3.0a12 Available View build log
3.0a11 Available View build log
2.2.2 Available View build log
2.2.1 Available View build log
2.0.3 Available View build log
2.0.2 Available View build log
2.0.1.1 Available View build log
2.0.1 Available View build log
0.2.1 Available View build log
0.2 Available View build log
0.2b2 Available View build log
0.2a1 Failed View build log
0.1.5 Available View build log
0.1.4 Available View build log
0.1.3 Available View build log
0.1.2 Available View build log
 
Author
License
MIT
Depended by
Lastest release
version 3.0a12 on Jan 9th, 2014

A theme for Pinax 0.9 based on Twitter's open source Bootstrap framework.

Quick Start

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

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.

Upgrade Notes

  • With newer versions of Bootstrap a light status bar is now default. If you'd like to use the darker navbar, simply override the navbar_class block in your site_base.html to something like the following (note we include the fixed-top class in this block by default, but it's also optional):

    {% block navbar_class %}navbar-inverse navbar-fixed-top{% endblock %}
    
  • Base templates: To enable multiple themes to be used within a single site, base templates are now located under the "theme_bootstrap" folder. We will continue to provide base templates at the root path for backward compatibility, but these will likely be removed in a future version and you should update your site_base.html to extend from "theme_bootstrap/base.html".

  • Forms Rendering: Versions prior to 2.0.3 included template tags for forms rendering. This has now been moved out to a new app, django-forms-bootstrap. You'll need to add this app to your INSTALLED_APPS as "django_forms_bootstrap".

Requirements

This theme is officially supported when used in conjuction with Pinax 0.9. If using the theme with Django < 1.4, you will need to install a recent version of django-staticfiles as we use the {% render %} template tag.

Forms

This theme makes use of django-forms-bootstrap for simple forms support. Make sure you have the latest version of django-forms-bootstrap installed in your virtualenv (if you install this theme with pip it will be installed automatically) and add "django_forms_bootstrap" to your INSTALLED_APPS.

To style forms, add the following to the top of your template

{% load bootstrap_tags %}

and include your form using something like the following markup:

<form>
    <legend>My Form</legend>
    {% csrf_token %}
    {{ form|as_bootstrap }}
    <div class="form-actions">
      <a href="#back" class="btn">Go back</a>
      <button type="submit" class="btn btn-primary">Save changes</button>
    </div>
</form>

Bootstrap includes styles for four types of forms. To change the display of your form, add one of the following class attributes to your form tag:

Name Class Description
Vertical (default) .form-vertical Stacked, left-aligned labels over controls
Horizontal .form-horizontal Float left, right-aligned labels on same line as controls
Inline .form-inline Left-aligned label and inline-block controls for compact style
Search .form-search Extra-rounded text input for a typical search aesthetic

Responsive Grid

Bootstrap's responsive grid makes designing layouts that work well on every device a snap. We've included the the responsive stylesheet in this theme by default. If you'd like to remove this from your site, include the following two in your site_base.html:

{# unset the viewport, telling mobile devices to scale your site #}
{% block viewport %}{% endblock %}

{# include all default stylesheets except the responsive grid #}
{% block style_base %}
    <link href="{% static "pinax/css/theme.css" %}" rel="stylesheet">
    <link href="{% static "bootstrap/css/bootstrap.css" %}" rel="stylesheet">
    {% block extra_style %}{% endblock %}
{% endblock %}

Roadmap

The 2.x line of pinax-theme-bootstrap with support for Pinax 0.9 will soon be phased out of major updates. We will be releasing a 3.x line that will break backwards compatibility but fully support Pinax 1.0 projects. This is a change towards a more semantic versioning strategy in lieu of merely indicating which version of Bootstrap media is included.

License & Attribution

The Pinax Bootstrap theme is released under the MIT license.

This theme includes styles and scripts from the Twitter Bootstrap project, which is released under the Apache License, Version 2.0.

For copies of both licenses, see LICENSE.

Includes icons from Glyphicons Free, licensed under CC BY 3.0.

Includes icons from Font Awesome.

Subscribe to package updates

Last updated Jan 9th, 2014

Download Stats

Last month:17

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.