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
Install or add django-maintenance-in-progress to your Python path.
Add maintenance_in_progress to your INSTALLED_APPS setting.
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.
Changelog
0.1
Initial release.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file django_maintenance_in_progress-0.1-py2.7.egg
.
File metadata
- Download URL: django_maintenance_in_progress-0.1-py2.7.egg
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68effd562d0400dc7553d09fae95b444030a0677416623b109ad80de6e55d289 |
|
MD5 | 48965f2595cdfb3c582a006ab7e0dcdb |
|
BLAKE2b-256 | 9a78a8e28519b6e155b32542575f72256065c5e9dc31b87634f57056948cb9c7 |