Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Fanstatic packaging of bootstrap-datepicker.js.

Project Description

js.bootstrapdatepicker

This library packages Bootstrap Datepicker for fanstatic. It is aware of different modes (normal, minified).

This requires integration between your web framework and fanstatic, and making sure that the original resources (shipped in the resources directory in js.bootstrapdatepicker) are published to some URL.

How to use?

You can import the Bootstrap Datepicker from js.bootstrapdatepicker and need it where you want these resources to be included on a page:

>>> from js.bootstrapdatepicker import bootstrapdatepicker
>>> bootstrapdatepicker.need()

Locales

Also included are locales for the bootstrap datepicker.

How to get the right locale for the current request depends on your web framework. In Pyramid you could e.g. do something like this:

from js.bootstrapdatepicker import bootstrapdatepicker_locales
from pyramid.i18n import get_locale_name

locale_name = get_locale_name(request)
if locale_name in bootstrapdatepicker_locales:
    bootstrapdatepicker_locales[locale_name].need()

CHANGES

1.1.3 (2016-02-27)

1.0 (2012-09-25)

  • Initial release.
Release History

Release History

This version
History Node

1.1.3

History Node

1.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
js.bootstrapdatepicker-1.1.3.zip (81.1 kB) Copy SHA256 Checksum SHA256 Source Feb 27, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting