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!

Simple facebox modal for Django

Project Description

This is a Django integration of Facebox.


pip install django-facebox

External dependencies

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


Add facebox to INSTALLED_APPS:


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

        'OPTIONS': {
            'context_processors': [

and just include facebox templates

{% include "facebox/facebox_css.html" %} {# Before the closing head tag #}
{% include "facebox/facebox_js.html" %} {# Before the closing body tag #}

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

python collectstatic


Extend base template for ajax requests

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

Add rel="facebox" to a link, and set the href to a page you want to display

<a href="{% url 'remote.html' %}" rel="facebox">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.


django-facebox is released under the BSD license.

Release History

This version
History Node


History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(11.6 kB) Copy SHA256 Hash SHA256
Wheel 2.7 Oct 14, 2016
(10.8 kB) Copy SHA256 Hash SHA256
Source None Oct 14, 2016

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Kabu Creative Kabu Creative UX & Design Google Google Cloud Servers Fastly Fastly CDN StatusPage StatusPage Statuspage DigiCert DigiCert EV Certificate