Skip to main content

django-venobox

https://badge.fury.io/py/django-venobox.svg https://img.shields.io/pypi/pyversions/django-venobox.svg https://img.shields.io/pypi/djversions/django-venobox.svg https://github.com/bashu/django-venobox/actions/workflows/test.yml/badge.svg

This is a Django integration of VenoBox.

Installation

First install the module, preferably in a virtual environment. It can be installed from PyPI:

pip install django-venobox

Setup

Add venobox to INSTALLED_APPS:

INSTALLED_APPS += (
    'venobox',
)

Be sure you have the django.template.context_processors.request processor

TEMPLATES = [
    {
        ...
        'OPTIONS': {
            'context_processors': [
                ...
                'django.template.context_processors.request',
            ],
        },
    },
]

add the middleware that restores request.is_ajax(), removed in Django 4.0

MIDDLEWARE += [
    'venobox.middleware.AjaxMiddleware',
]

It treats a request as ajax when it has X-Requested-With: XMLHttpRequest or Sec-Fetch-Dest: empty. VenoBox does not send the former, and browsers send the latter only over HTTPS and on localhost; otherwise request.is_ajax() is false.

Then just include venobox templates

{% include "venobox/venobox_css.html" %} {# Before the closing head tag #}
{% include "venobox/venobox_js.html" %} {# Before the closing body tag #}

When deploying on production server, don’t forget to run :

python manage.py collectstatic

Usage

Extend base template for ajax requests

{% extends request.is_ajax|yesno:"venobox/base.html,base.html" %}

Add class="venobox" to a link, and set the href to a page you want to display

<a data-vbtype="ajax" href="{% url 'remote.html' %}" class="venobox">Click here</a>

Please see example application. This application is used to manually test the functionalities of this package. This also serves as a good example.

Contributing

If you like this module, forked it, or would like to improve it, please let us know! Pull requests are welcome too. :-)

License

django-venobox is released under the BSD license.

Changes

0.2.0 (2026-11-13)

  • Add venobox.middleware.AjaxMiddleware, which restores request.is_ajax() removed in Django 4.0. It also detects VenoBox requests, which carry Sec-Fetch-Dest: empty instead of X-Requested-With.

  • Switch packaging to hatchling and the src layout.

0.1.2 (2026-10-10)

  • Drop support for Python 3.10; Python 3.11 is now the minimum required version.

  • Add support for Python 3.15.

0.1.0 (2026-09-08)

  • Initial release.

Metadata

Release files for django-venobox 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-venobox 0.2.0
File Size Uploaded Provenance Actions
django_venobox-0.2.0.tar.gz 16.6 kB With provenance Details for django_venobox-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-venobox 0.2.0
File Interpreter ABI Platform Actions
django_venobox-0.2.0-py3-none-any.whl Python 3 none any Details for django_venobox-0.2.0-py3-none-any.whl

Total release size: 31.1 kB

Release files / django_venobox-0.2.0.tar.gz

Download URL django_venobox-0.2.0.tar.gz
Size 16.6 kB
Tags Source
SHA-256 checksum
How to use checksums
b268c3d776246e8d74c237acc842f2a4196e5e8800093c59ec13dfc35fabdf1e
BLAKE2b-256 checksum
How to use checksums
72763c9634699dbd6e990a45614818d6c68542388f70998d52610beb60548083
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

Release files / django_venobox-0.2.0-py3-none-any.whl

Download URL django_venobox-0.2.0-py3-none-any.whl
Size 14.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
57506efdedf3a492645dbfe0fbd7bcccd4daa10d85bdb690ecf3ec7a67234c2d
BLAKE2b-256 checksum
How to use checksums
3c1efab92c6832c2a125adc15e32998755e0a53cd15d65bbadb8ea7b4dc7e730
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

Security for django-venobox 0.2.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for django_venobox-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page