Skip to content

praekelt/django-maintenance-in-progress

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages