Skip to main content

## Django Downtime

> Looking For Authors! This project is currently looking for a user to take it over. If that sounds like you, send a note to derek at stegelman dot com or open up an issue in this repository.

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

Official Docs

http://django-downtime.readthedocs.org

Install

Django supports versions 1.8, 1.9, 1.10, and 1.11 on Python 2 and 3.

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.

Metadata

Release files for django-downtime 1.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-downtime 1.1.2
File Size Uploaded Provenance
django-downtime-1.1.2.tar.gz 12.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for django-downtime 1.1.2
File Interpreter ABI Platform
django_downtime-1.1.2-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 24.3 kB

Release files / django-downtime-1.1.2.tar.gz

Download URL django-downtime-1.1.2.tar.gz
Size 12.9 kB
Tags Source
SHA-256 checksum
How to use checksums
6443dc379b3e789e44c25130daabef88f3d9cac75ad218ee7984ea3fb2bf74de
BLAKE2b-256 checksum
How to use checksums
fff57b05524c688e08fcd1c4965349f7c222afbb1bea9c36c5fdf359b1846a34
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / django_downtime-1.1.2-py2.py3-none-any.whl

Download URL django_downtime-1.1.2-py2.py3-none-any.whl
Size 11.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
32c49027f8d6c3e47c1c49e2d6bc4020ebf5a1354adf495ba15e1b1f13191daa
BLAKE2b-256 checksum
How to use checksums
fccd75bf08d5b605857ccadd5fc4f80303811b4be89bf78945cc20c18926b80d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-downtime 1.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page