Skip to main content

A swatch page for Bootstrap styling

Project description

https://badge.fury.io/py/dj-bootstrap-swatches.svg https://travis-ci.org/bwarren2/dj-bootstrap-swatches.svg?branch=master https://codecov.io/gh/bwarren2/dj-bootstrap-swatches/branch/master/graph/badge.svg

A swatch page for Bootstrap styling

Documentation

The full documentation is at https://dj-bootstrap-swatches.readthedocs.io.

Quickstart

Install Django Bootstrap Swatches:

pip install dj-bootstrap-swatches

Add it to your INSTALLED_APPS:

INSTALLED_APPS = (
    ...
    'dj_bootstrap_swatches.apps.DjBootstrapSwatchesConfig',
    ...
)

Add Django Bootstrap Swatches’s URL patterns:

from dj_bootstrap_swatches import urls as dj_bootstrap_swatches_urls


urlpatterns = [
    ...
    url(r'^bootswatch/', include(dj_bootstrap_swatches_urls)),
    ...
]

Per “Two Scoops of Django” design patterns, the default swatch page tries to extend a base template called base.html and a block called content. If this isn’t your practice, you’ll need to adjust things to fit.

Features

  • TODO

Running Tests

Does the code actually work?

source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ tox

Credits

Tools used in rendering this package:

History

0.1.0 (2017-05-26)

  • First release on PyPI.

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

dj-bootstrap-swatches-0.4.0.tar.gz (13.4 kB view hashes)

Uploaded Source

Built Distribution

dj_bootstrap_swatches-0.4.0-py2.py3-none-any.whl (12.8 kB view hashes)

Uploaded Python 2 Python 3

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