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
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 Distribution
django-downtime-0.2.tar.gz
(2.9 kB
view details)
File details
Details for the file django-downtime-0.2.tar.gz
.
File metadata
- Download URL: django-downtime-0.2.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3e6426546d35584df9a805195e145cea260b6e54ca5bb811d33fc58cd91ea9b |
|
MD5 | 374626eef47d0cf95cb5083d186443b3 |
|
BLAKE2b-256 | 10a7b4c727f01caec6684af13ae3a86b1b386b52c3cf8af81a75eb16a3a6ffad |