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.1.tar.gz
(10.5 kB
view hashes)
Built Distribution
Close
Hashes for django_downtime-1.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6176bec590f5c685001107deb40478bc59303835ed3ce19a4fc7cdd1d97a8a2d |
|
MD5 | 7dd00b6d3999dba50aa14aeee7edae09 |
|
BLAKE2b-256 | 47f92a031e914677cde9dfaa5270fdd8609a6cc16a9217729133adb2340fa2f5 |