django-downtime 1.0.4

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

## Django Downtime

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

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 URLs:

DOWNTIME_EXEMPT_EXACT_URLS = (
    '/', # exempts homepage
    '/other_location/not_down/page',
)

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 specifying a downtime/downtime.html template.

Management Commands

There are two managment commands, one to take a project down python manage.py downtime_start and one to set it back up python manage.py downtime_end.

What happens internally when calling python manage.py downtime_start?

This sets a start date time and mark is as enabled. We call this "deployment mode", usually called before running a deployment script.

What happens internally when calling python manage.py downtime_end?

This sets a end date time to all records that has a start date time and no end date time set and are marked as enabled. We call this "closing deployment mode", usually called after running a deployment script.

MIT

Author

Derek Stegelman

Pip

django-downtime==1.0.4

Classifiers

  • Development Status :: 5 - Production/Stable
  • Environment :: Web Environment
  • Framework :: Django
  • Intended Audience :: Developers
  • License :: OSI Approved :: MIT License
  • Operating System :: OS Independent
  • Programming Language :: Python
  • Programming Language :: Python :: 2
  • Programming Language :: Python :: 3
  • Natural Language :: English
  • Topic :: Utilities
  • Framework :: Django :: 1.6
  • Framework :: Django :: 1.7
  • Framework :: Django :: 1.8
  • Framework :: Django :: 1.4
  • Framework :: Django :: 1.5
  • Topic :: Internet :: WWW/HTTP :: Dynamic Content :: CGI Tools/Libraries
File Type Python Version Uploaded On Downloads
django_downtime-1.0.4-py2.py3-none-any.whl Wheel 2.7 July 18, 2015 416
django-downtime-1.0.4.tar.gz Source July 18, 2015 1,473
Version Release Date
1.0.4 July 18, 2015
1.0.3 June 23, 2015
1.0.2 June 10, 2015
1.0.1 April 16, 2015
1.0.0 April 16, 2015
0.3.3 March 2, 2015
0.3.2 Jan. 10, 2015
0.3.1 Nov. 11, 2013
0.3 Aug. 28, 2012
0.2 Aug. 4, 2012
0.1 Aug. 4, 2012
Date Package Version Action
Aug. 24, 2015, 11:01 p.m. django-downtime 0.1 Release Created
Aug. 24, 2015, 11:01 p.m. django-downtime 0.3.1 Release Created
Aug. 24, 2015, 11:01 p.m. django-downtime 0.3 Release Created
Aug. 24, 2015, 11:01 p.m. django-downtime 0.3.3 Release Created
Aug. 24, 2015, 11:01 p.m. django-downtime 0.3.2 Release Created
Aug. 24, 2015, 11:01 p.m. django-downtime 1.0.3 Release Created
Aug. 24, 2015, 11:01 p.m. django-downtime 1.0.2 Release Created
Aug. 24, 2015, 11:01 p.m. django-downtime 1.0.1 Release Created
Aug. 24, 2015, 11:01 p.m. django-downtime 1.0.0 Release Created
Aug. 24, 2015, 11:01 p.m. django-downtime 0.2 Release Created
Aug. 24, 2015, 11:01 p.m. django-downtime 1.0.4 Release Created
Aug. 24, 2015, 11:01 p.m. django-downtime Package Created