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
Built Distribution
File details
Details for the file django-downtime-1.0.1.tar.gz
.
File metadata
- Download URL: django-downtime-1.0.1.tar.gz
- Upload date:
- Size: 10.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f62edf2c1c80afae395162cf733e91fa02ab15cdf0fefa923eaee9437f00d1ab |
|
MD5 | ac3398b1dbc83d1980c9ab69ac6af45d |
|
BLAKE2b-256 | 93e207df93b11eb0f80091bf803719f0728402d3f4344582d2f17d38fb5e5a2e |
Provenance
File details
Details for the file django_downtime-1.0.1-py2.py3-none-any.whl
.
File metadata
- Download URL: django_downtime-1.0.1-py2.py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6176bec590f5c685001107deb40478bc59303835ed3ce19a4fc7cdd1d97a8a2d |
|
MD5 | 7dd00b6d3999dba50aa14aeee7edae09 |
|
BLAKE2b-256 | 47f92a031e914677cde9dfaa5270fdd8609a6cc16a9217729133adb2340fa2f5 |