Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Intercept possible 500 errors when site maintenance is in progress and display a friendly page.

Project Description

Django Maintenance in Progress

Intercept possible 500 errors when site maintenance is in progress and display a friendly page.

Overview

During system maintenance some pages may produce errors due to eg. database upgrades. A blanket rule would take down the entire site, which is naturally undesirable. maintenance_in_progress only displays a maintenance message when a 500 error is encountered during the maintenance window.

Installation

  1. Install or add django-maintenance-in-progress to your Python path.
  2. Add maintenance_in_progress to your INSTALLED_APPS setting.
  3. Set handler500 = 'maintenance_in_progress.views.server_error' in urls.py.

Usage

Admin has a Maintenance In Progress Preferences link where you can choose to indicate maintenance is in progress either by a flag in the database or by creating a file on the filesystem.

Authors

Praekelt Foundation

  • Hedley Roos

Changelog

0.1

  1. Initial release.
Release History

Release History

This version
History Node

0.1

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_maintenance_in_progress-0.1-py2.7.egg (9.6 kB) Copy SHA256 Checksum SHA256 2.7 Egg Nov 11, 2014

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