A swatch page for Bootstrap styling
The full documentation is at https://dj-bootstrap-swatches.readthedocs.io.
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.
- TODO
Run a fake server with the test settings and nav to http://localhost:8000/3
python manage.py runserver --settings tests.settings
` bumpversion --current-version 0.6.0 minor ` ` python setup.py publish `
Does the code actually work?
source <YOURVIRTUALENV>/bin/activate (myenv) $ pip install tox (myenv) $ tox
Tools used in rendering this package:
Compilation of components due to Thomas Park via [Bootswatch](https://bootswatch.com/default/).