Skip to content

A swatch page for Bootstrap, easily integrated into Django.

License

Notifications You must be signed in to change notification settings

bwarren2/dj-bootstrap-swatches

Repository files navigation

Django Bootstrap Swatches

https://travis-ci.org/bwarren2/dj-bootstrap-swatches.svg?branch=master

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

Development

Run a fake server with the test settings and nav to http://localhost:8000/3

python manage.py runserver --settings tests.settings

Development

` bumpversion --current-version 0.6.0 minor ` ` python setup.py publish `

Running Tests

Does the code actually work?

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

Credits

Tools used in rendering this package:

Compilation of components due to Thomas Park via [Bootswatch](https://bootswatch.com/default/).

About

A swatch page for Bootstrap, easily integrated into Django.

Resources

License

Stars

Watchers

Forks

Packages

No packages published