Skip to main content

Adds Bootstrap 3 components as plugins.

Project description

Resurrected

While this has been deprecated by Divio/Aldryn… I have resurrected it so we can upgrade some old applications still using it.

pip install aldryn-bootstrap3-resurrected

Deprecated

This project has been succeeded by djangocms-bootstrap4 , and is no longer supported.

Divio will undertake no further development or maintenance of this project. If you are interested in taking responsibility for this project as its maintainer, please contact us via www.divio.com.

Aldryn Bootstrap3

pypi build coverage

Aldryn Bootstrap 3 is a plugin bundle for django CMS providing several components from the popular Bootstrap 3 framework.

This addon is compatible with Divio Cloud and is also available on the django CMS Marketplace for easy installation.

preview.gif

Contributing

This is a an open-source project. We’ll be delighted to receive your feedback in the form of issues and pull requests. Before submitting your pull request, please review our contribution guidelines.

One of the easiest contributions you can make is helping to translate this addon on Transifex.

Documentation

See REQUIREMENTS in the setup.py file for additional dependencies:

  • Python 2.7, 3.3 or higher

  • Django 1.6 or higher

  • Django Filer 1.2.4 or higher

  • Django Text CKEditor 3.1.0 or higher

Make sure django Filer and django CMS Text CKEditor are installed and configured appropriately.

Installation

For a manual install:

  • run pip install aldryn-bootstrap3

  • add aldryn_bootstrap3 to your INSTALLED_APPS

  • run python manage.py migrate aldryn_bootstrap3

Configuration

Aldryn Bootstrap 3 replaces the following django CMS plugins:

It provides the following standard Bootstrap 3 components:

It also provides the following 3rd party components:

These components need to be manually configured in order to work properly inside your project. See this gist for additional information on a recommended spacer configuration.

Settings

This addon provides a standard template for Carousels. You can provide additional style choices by adding a ALDRYN_BOOTSTRAP3_CAROUSEL_STYLES setting:

ALDRYN_BOOTSTRAP3_CAROUSEL_STYLES = [
    ('feature', _('Featured Version')),
]

You’ll need to create the feature folder inside templates/aldryn_bootstrap/plugins/carousel/ otherwise you will get a template does not exist error. You can do this by copying the standard folder inside that directory and renaming it to feature.

In addition you can set or extend your own icon fonts using ALDRYN_BOOTSTRAP3_ICONSETS:

ALDRYN_BOOTSTRAP3_ICONSETS = [
    ('glyphicons', 'glyphicons', 'Glyphicons'),
    ('fontawesome', 'fa', 'Font Awesome'),
    # custom iconsets have to be JSON
    ('{"iconClass": "icon", "iconClassFix": "icon-", "icons": [...]}', 'icon', 'Custom Font Icons'),
    ('{"svg": true, "spritePath": "sprites/icons.svg", "iconClass": "icon", "iconClassFix": "icon-", "icons": [...]}', 'icon', 'Custom SVG Icons'),
]

The default grid size is set to 24 when validating the column input, you can override this by setting:

ALDRYN_BOOTSTRAP3_GRID_SIZE = 12

Running Tests

You can run tests by executing:

virtualenv env
source env/bin/activate
pip install -r tests/requirements.txt
python setup.py test

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

aldryn-bootstrap3-resurrected-1.3.83.tar.gz (674.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aldryn_bootstrap3_resurrected-1.3.83-py3-none-any.whl (724.3 kB view details)

Uploaded Python 3

File details

Details for the file aldryn-bootstrap3-resurrected-1.3.83.tar.gz.

File metadata

File hashes

Hashes for aldryn-bootstrap3-resurrected-1.3.83.tar.gz
Algorithm Hash digest
SHA256 069facb4c5848970127da66e90217b478df61e96aaa077c8a6997fc9c0f480d9
MD5 c37ca7ec45f814ebeec501bb6e77e152
BLAKE2b-256 e43060a60be828144b046cb17f23bff6879457ae7f45ea5f7c0f9b3bd015110d

See more details on using hashes here.

File details

Details for the file aldryn_bootstrap3_resurrected-1.3.83-py3-none-any.whl.

File metadata

File hashes

Hashes for aldryn_bootstrap3_resurrected-1.3.83-py3-none-any.whl
Algorithm Hash digest
SHA256 a911783bc9479d722ac3bc81a0e21d8400264aab317f5afc67868b3541f0bc92
MD5 5bcaf10e734b5095ac25dc3bdb52209d
BLAKE2b-256 4b012a50786f7c72645ebb9c13cdb8b2888970a78d66f8ffc4fb0a9f4ff41f03

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page