Skip to main content

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

Project description

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

Install

To install django-downtime:

pip install django-downtime

add to installed apps:

downtime

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

'downtime.middleware.DowntimeMiddleware',

Settings

Exempted Paths:

DOWNTIME_EXEMPT_PATHS = (
    '/admin',
    '/other_location_not_down',
)

Url Redirect

DOWNTIME_URL_REDIRECT = “http://errors.mypage.com

Templates

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

Project details


Download files

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

Source Distribution

django-downtime-0.2.tar.gz (2.9 kB view details)

Uploaded Source

File details

Details for the file django-downtime-0.2.tar.gz.

File metadata

File hashes

Hashes for django-downtime-0.2.tar.gz
Algorithm Hash digest
SHA256 a3e6426546d35584df9a805195e145cea260b6e54ca5bb811d33fc58cd91ea9b
MD5 374626eef47d0cf95cb5083d186443b3
BLAKE2b-256 10a7b4c727f01caec6684af13ae3a86b1b386b52c3cf8af81a75eb16a3a6ffad

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page