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!

Give your site a down page, or redirect to another error page.

Project Description

## Django Downtime

Small, simple, app to show a down page while you make upgrades.


Django supports versions 1.4 to 1.8 on Python 2.7 and 3.4.

To install django-downtime:

pip install django-downtime

add to installed apps:


Add downtime middleware to the top your list of installed middlewares:



Exempted URLs:

    '/', # exempts homepage

Exempted Paths:


Url Redirect



If no URL Redirect is specified a lame default template is rendered, this can be overridden by specifying a downtime/downtime.html template.

Management Commands

There are two managment commands, one to take a project down python downtime_start and one to set it back up python downtime_end.

What happens internally when calling python downtime_start?

This sets a start date time and mark is as enabled. We call this “deployment mode”, usually called before running a deployment script.

What happens internally when calling python downtime_end?

This sets a end date time to all records that has a start date time and no end date time set and are marked as enabled. We call this “closing deployment mode”, usually called after running a deployment script.

Release History

Release History

This version
History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django_downtime-1.0.4-py2.py3-none-any.whl (11.3 kB) Copy SHA256 Checksum SHA256 2.7 Wheel Jul 18, 2015
django-downtime-1.0.4.tar.gz (194.6 kB) Copy SHA256 Checksum SHA256 Source Jul 18, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting