martey / django-downtime

Small, simple, app to show a down page or redirect to another site while you make upgrades.

Home Page:http://django-downtime.readthedocs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Small, simple, app to show a down page while you make upgrades.

Official Docs

http://django-downtime.readthedocs.org

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.

About

Small, simple, app to show a down page or redirect to another site while you make upgrades.

http://django-downtime.readthedocs.org

License:MIT License


Languages

Language:Python 95.9%Language:HTML 4.1%