Giter Site home page Giter Site logo

paramono / aldryn-bootstrap3 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from divio/aldryn-bootstrap3

0.0 1.0 0.0 1.2 MB

Adds several commonly used Bootstrap 3 components to django CMS as selectable plugins.

Home Page: https://marketplace.django-cms.org/en/addons/browse/aldryn-bootstrap3/

License: Other

Python 72.37% CSS 2.38% JavaScript 12.59% HTML 12.66%

aldryn-bootstrap3's Introduction

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'),
    ('icons', 'icon', 'Custom 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

aldryn-bootstrap3's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.