Skip to main content

django-fancybox

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

This is a Django integration of Fancybox.

Installation

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

pip install django-fancybox

External dependencies

  • jQuery - This is not included in the package since it is expected that in most scenarios this would already be available.

Setup

Add fancybox to INSTALLED_APPS:

INSTALLED_APPS += (
    'fancybox',
)

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

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

and just include fancybox templates

{% include "fancybox/fancybox_css.html" %} {# Before the closing head tag #}
{% include "fancybox/fancybox_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:"fancybox/base.html,base.html" %}

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

<a data-fancybox data-type="ajax" href="{% url 'remote.html' %}" class="fancybox">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.

You need only Django 1.4 or above to run that. It might run on older versions but that is not tested.

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-fancybox is released under the BSD license.

Changes

0.1.9 (2026-10-10)

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

0.1.7 (2026-08-14)

  • Migrate packaging to pyproject.toml and modern tooling (ruff, pre-commit, tox, versionflow).

Metadata

Release files for django-fancybox 0.1.9

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-fancybox 0.1.9
File Size Uploaded Provenance
django_fancybox-0.1.9.tar.gz 31.4 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for django-fancybox 0.1.9
File Interpreter ABI Platform
django_fancybox-0.1.9-py3-none-any.whl Python 3 none any Details

Total release size: 61.9 kB

Release files / django_fancybox-0.1.9.tar.gz

Download URL django_fancybox-0.1.9.tar.gz
Size 31.4 kB
Tags Source
SHA-256 checksum
How to use checksums
db236562f41b7cb9631904f36fffdd1f5a0c8f92521ea10fd8dc89d494e674d3
BLAKE2b-256 checksum
How to use checksums
bfc93b853a1eb428cba761d2b55e67c3296a391d338070ecd5d761a469006930
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 10, 2026.

Transparency log

Release files / django_fancybox-0.1.9-py3-none-any.whl

Download URL django_fancybox-0.1.9-py3-none-any.whl
Size 30.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3c4cdf19b010b066a8c57d6752747efdd607d406d3c11ce082c6542bbfc032b4
BLAKE2b-256 checksum
How to use checksums
2f1bd8bd6f2ff1d3c12e2458b84664eba082d7fe3eeca2aa55422a12c200fa60
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 10, 2026.

Transparency log

Security for django-fancybox 0.1.9

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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for django_fancybox-0.1.9.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 Oct 10, 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.

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