Incubator for django-crud-views extension apps (widgets, fields)
Project description
django-crud-views-extensions
Incubator for django-crud-views
extension apps. Apps here are named as if they lived in django-crud-views itself
(crud_views_widget_*); once mature, an app may move into the main package with no
code changes for consuming projects.
Requires django-crud-views >= 0.11 (asset registry).
crud_views_widget_datetimepicker
Form widgets wrapping the xdsoft jQuery DateTimePicker:
DateTimePickerInput, DatePickerInput, TimePickerInput.
Prerequisite: jQuery loaded in your base template before {% cv_js %} (same rule as
django-crud-views core).
Install
pip install django-crud-views-extensions
INSTALLED_APPS = [
...
"crud_views",
"crud_views_widget_datetimepicker",
]
That's it — the widget's JS/CSS are delivered through {% cv_js %}/{% cv_css %} on
every page (including crud-views modals) via the asset registry. By default the plugin
files load from jsDelivr (CDN mode).
Use
from crud_views_widget_datetimepicker.widgets import DateTimePickerInput
class AppointmentForm(CrispyModelForm):
class Meta:
model = Appointment
fields = ["title", "starts_at"]
widgets = {"starts_at": DateTimePickerInput()}
Options: config={...} (any xdsoft option, e.g. step, minTime), and
DateTimePickerInput(fix_year=2026) to lock the picker to one calendar year.
Settings
CRUD_VIEWS_DATETIMEPICKER = {
"SOURCE": "cdn", # "cdn" (default) | "vendored"
"VERSION": "2.5.21", # pinned upstream version, used by both modes
"CDN_BASE": "https://cdn.jsdelivr.net/npm/jquery-datetimepicker@{version}/build/",
"VENDOR_DIR": None, # required for vendored mode; must be on STATICFILES_DIRS
"EMIT": True, # False: keep registered but let a bundler deliver the files
"LANG": None, # None: derived from LANGUAGE_CODE
"DEFAULTS": {}, # merged into every widget's picker config
}
Vendored mode (recommended for production / GDPR)
CRUD_VIEWS_DATETIMEPICKER = {"SOURCE": "vendored", "VENDOR_DIR": BASE_DIR / "vendored_static"}
STATICFILES_DIRS = [BASE_DIR / "vendored_static"]
python manage.py cv_vendor_datetimepicker
A system check warns on startup when the vendored files are missing (crud_views.W330)
or don't match the pinned VERSION (crud_views.W331).
django-pipeline
CDN mode cannot be bundled. For pipeline, use vendored mode and build your bundle from the same path list the app uses internally — then switch off tag emission:
from crud_views_widget_datetimepicker.assets import source_files
_dtp = source_files("2.5.21", minified=False) # pipeline minifies itself
PIPELINE = {
"JAVASCRIPT": {"main": {"source_filenames": [..., *_dtp["js"]], ...}},
"STYLESHEETS": {"main": {"source_filenames": [..., *_dtp["css"]], ...}},
}
CRUD_VIEWS_DATETIMEPICKER = {"SOURCE": "vendored", "VENDOR_DIR": ..., "EMIT": False}
Keep the order jQuery → plugin → init.js in your bundle (source_files() already
returns plugin before init.js).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_crud_views_extensions-0.1.1.tar.gz.
File metadata
- Download URL: django_crud_views_extensions-0.1.1.tar.gz
- Upload date:
- Size: 46.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
97db899066023166c829ae39e4b830aaeacc82470626494ef8fd34cf8ba01563
|
|
| MD5 |
ae4def502c2936a1831ad2f4cd2b67fb
|
|
| BLAKE2b-256 |
6c27b259ca9e341b40499b82acb9a18078cfadbe04da30f98c247d46784da7a2
|
Provenance
The following attestation bundles were made for django_crud_views_extensions-0.1.1.tar.gz:
Publisher:
publish.yml on jacob-consulting/django-crud-views-extensions
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
django_crud_views_extensions-0.1.1.tar.gz -
Subject digest:
97db899066023166c829ae39e4b830aaeacc82470626494ef8fd34cf8ba01563 - Sigstore transparency entry: 2169356572
- Sigstore integration time:
-
Permalink:
jacob-consulting/django-crud-views-extensions@efc8f25967a7cc7e7d414a0a993433c71644d19f -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/jacob-consulting
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@efc8f25967a7cc7e7d414a0a993433c71644d19f -
Trigger Event:
push
-
Statement type:
File details
Details for the file django_crud_views_extensions-0.1.1-py3-none-any.whl.
File metadata
- Download URL: django_crud_views_extensions-0.1.1-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b6768b74b0cf1a8bc9ecedbdadfb356df8b3ba2b840baf09ed66464b76743bb
|
|
| MD5 |
244416117c4785e073a0c4007777b76e
|
|
| BLAKE2b-256 |
6c608f38fa871f00196e3a1b54418c2d8137ef4500767fe076b8fddbf6b7d973
|
Provenance
The following attestation bundles were made for django_crud_views_extensions-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on jacob-consulting/django-crud-views-extensions
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
django_crud_views_extensions-0.1.1-py3-none-any.whl -
Subject digest:
3b6768b74b0cf1a8bc9ecedbdadfb356df8b3ba2b840baf09ed66464b76743bb - Sigstore transparency entry: 2169356629
- Sigstore integration time:
-
Permalink:
jacob-consulting/django-crud-views-extensions@efc8f25967a7cc7e7d414a0a993433c71644d19f -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/jacob-consulting
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@efc8f25967a7cc7e7d414a0a993433c71644d19f -
Trigger Event:
push
-
Statement type: