django-bootstrap3-datetimepicker
This package uses Bootstrap v3 datetimepicker widget version 4.
This project was originally a fork of https://github.com/nkunihiko/django-bootstrap3-datetimepicker, it now has the following breaking changes:
js/css files are no longer included in the project, managing them is up to the user, eg. using grablib.
the widget no longer has js/css assets. these are left for you to deploy as you wish.
bug/warning fixes
remove support for python 2.6 and associated clean up
Install
pip install django-bootstrap3-datetimepicker-2
Example
forms.py
from bootstrap3_datetime.widgets import DateTimePicker
from django import forms
class ToDoForm(forms.Form):
todo = forms.CharField(
widget=forms.TextInput(attrs={"class": "form-control"}))
date = forms.DateField(
widget=DateTimePicker(options={"format": "YYYY-MM-DD"}))
reminder = forms.DateTimeField(
required=False,
widget=DateTimePicker(options={"format": "YYYY-MM-DD HH:mm"}))
The options will be passed to the JavaScript datetimepicker instance. Available options are explained in the following documents:
You don’t need to set the language option, because it will be set the current language of the thread automatically.
template.html
<!DOCTYPE html>
<html>
<head>
<!-- load all required js/css yourself here -->
</head>
<body>
<form method="post" role="form">
{{ form|bootstrap }}
{% csrf_token %}
<div class="form-group">
<input type="submit" value="Submit" class="btn btn-primary" />
</div>
</form>
</body>
</html>
Here we assume you’re using django-bootstrap-form or django-jinja-bootstrap-form but you can draw out your HTML manually.
Requirements
Python >= 2.7
Django >= 1.8
Bootstrap == 3.X
Moment >= 2.10.6
bootstrap-datetimepicker >= 4.15.35
Metadata
Release files for django-bootstrap3-datetimepicker-vinta 2.4.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-bootstrap3-datetimepicker-vinta-2.4.3.tar.gz | 3.7 kB | Without provenance | Details for django-bootstrap3-datetimepicker-vinta-2.4.3.tar.gz |
Release files / django-bootstrap3-datetimepicker-vinta-2.4.3.tar.gz
| Download URL | django-bootstrap3-datetimepicker-vinta-2.4.3.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1f71964302533b7273a75a8cf196cbd753bdde6e0938d61865b359c7e6920322
|
|
BLAKE2b-256 checksum How to use checksums |
21ed01a585d7c67245714f56a9b6d3c70da724a7a86bdbdb4ad9cae17a2bbcdc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-bootstrap3-datetimepicker-vinta 2.4.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.