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

Django date range form field

Project Description
# django-bootstrap3-daterangepicker

This is django field wrapper for . Useful for reporting services.

Field data format is tuple (start_date, end_date).


1. ```pip install django_bootstrap3_daterangepicker```
2. add `'django_bootstrap3_daterangepicker'` to `INSTALLED_APPS`

* jQuery, Bootstrap are required on target page

class PeriodFilter(forms.Form):
range = DateRangeField(widget=DateRangeWidget(picker_options={
'ranges': common_dates()

# ...
form = PeriodFilter(initial={'range': (,})
# ...
(from_date, to_date) = form.cleaned_data['range']

Template - don't forget media:
{% block extracss %}
{{['css'] }}
{% endblock %}
{% block endscripts %}
{{ super() }}
{{['js'] }}
{% endblock %}

{% block content %}
{{ filter.range }}
{% endblock %}

Special thanks to for guidance in creating custom fields.
Release History

Release History

This version
History Node


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 (59.0 kB) Copy SHA256 Checksum SHA256 Source May 31, 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