This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Bootstrap3/4 compatible datepicker for Django projects.

Project Description

This package uses Bootstrap datepicker widget version 1.6.4.


pip install git+


General cleanup and testing


from bootstrap_datepicker.widgets import DatePicker
from django import forms

  class ToDoForm(forms.Form):
      todo = forms.CharField(
          widget=forms.TextInput(attrs={"class": "form-control"}))
      date = forms.DateField(
          widget=DatePicker(options={"format": "mm/dd/yyyy","autoclose": True}))

The options will be passed to the JavaScript datepicker instance. Available options are explained in the following documents:

Checkout the online demo to help with exploring different options:

You don’t need to set the language option, because it will be set the current language of the thread automatically.


<!DOCTYPE html>
    <link rel="stylesheet" href="{% static 'contrib/bootstrap.css' %}">
    <link rel="stylesheet" href="{% static 'contrib/font-awesome.min.css' %}">
    <script src="{% static 'contrib/bootstrap.js' %}"></script>
    <form method="post" role="form">
      {{ form|bootstrap }}
      {% csrf_token %}
      <div class="form-group">
        <input type="submit" value="Submit" class="btn btn-primary" />

Here we assume you’re using django-bootstrap-form or django-jinja-bootstrap-form but you can draw out your HTML manually.


  • Python >= 3.3
  • Django >= 1.8
  • Bootstrap == 4.0-alpha4
  • jquery >= 1.7.1
  • font-awesome >= 4.5.X
Release History

Release History

This version
History Node


History Node


History Node


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
django_bootstrap_datepicker-1.2.2-py3-none-any.whl (56.7 kB) Copy SHA256 Checksum SHA256 3.5 Wheel Jan 23, 2017
django-bootstrap-datepicker-1.2.2.tar.gz (34.2 kB) Copy SHA256 Checksum SHA256 Source Jan 23, 2017

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