Give your site a down page, or redirect to another error page.
Project description
## Django Downtime
Small, simple, app to show a down page while you make upgrades.
Official Docs
Install
Django supports versions 1.4 to 1.8 on Python 2.7 and 3.4.
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-1.0.0.tar.gz
(4.7 kB
view hashes)
Built Distribution
Close
Hashes for django_downtime-1.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ada27dc3da001ba399ce2a8ed26f9e9370bbeece8a0e2ad45ef310aac87d5a0 |
|
MD5 | 8f1c9573f5004f17f5c800f520543ad2 |
|
BLAKE2b-256 | faf4015e15abb65dda03880458762d2825bb95270a04bdfab9c1726da961d034 |