skip to navigation
skip to content

Not Logged In

django-downtime 0.3.1

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

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.

 
File Type Py Version Uploaded on Size
django-downtime-0.3.1.tar.gz (md5) Source 2013-11-11 2KB
  • Downloads (All Versions):
  • 17 downloads in the last day
  • 115 downloads in the last week
  • 419 downloads in the last month