Skip to main content

wagtail-holdingpage

Proudly supported by the Australian Museum.

A widget for Wagtail's admin that gives you an admin interface to control turning 'holding page mode' on and off for your website while you deploy and test updates.

When 'holding page mode' is on, visitors will see the holding page template instead of the normal site content, and the response code will be 503 Service Unavailable. Holding page responses are decorated with Django's never_cache decorator.

Use

When holding page mode is on, it will display a nice-looking maintenance page, but optionally allow some pages to behave as normal, or allow the site to behave as normal for admins. In your settings you can exclude certain URLs (eg /admin) from being affected.

Image

Installation

python3 -m pip install wagtail-holdingpage

Add "wagtail_holdingpage.apps.WagtailHoldingpageAppConfig" to INSTALLED_APPS.

Add "wagtail_holdingpage.middleware.HoldingPageMiddleware" to MIDDLEWARE, normally below any session and authentication middleware.

Set HOLDINGPAGE_TEMPLATE_NAME in your Django settings to the path of the template you want to use for the holding page. Alternatively, override the default template "wagtail_holdingpage/holding_page.html".

Optionally, add the following settings to your settings file, for example:

HOLDINGPAGE_ALLOWED_URL_PATTERNS = [
    "^/admin/*",
    "^/robots.txt",
    "/favicon.ico",
]

Optionally, create additional hooks to allow certain requests to bypass the holding page. See hooks.py for an example. HoldingpageSettings allows you to control whether the allow_staff hook is enabled via the Wagtail admin. Alternatively, you can configure it to be always enabled via HOLDINGPAGE_HOOKS (overrides the admin setting).

HOLDINGPAGE_HOOKS = [
    "myapp.hooks.my_hook",
]

Optionally, set HOLDINGPAGE_REDIRECT_URL in your Django settings to specify a URL to which visitors should be 302 redirected when the holding page is active. This can be useful if the holding page is external, but note that visitors may remain on that redirect destination and simply refresh it and so they'll never know when holding page mode is turned off. You might want to redirect them back to the main site once the holding page mode is turned off.

HOLDINGPAGE_REDIRECT_URL = "https://otherdomain.com/maintenance/"

Metadata

Release files for wagtail-holdingpage 0.1.3

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

Source distribution (sdist)

Source distribution for wagtail-holdingpage 0.1.3
File Size Uploaded Provenance
wagtail_holdingpage-0.1.3.tar.gz 9.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for wagtail-holdingpage 0.1.3
File Interpreter ABI Platform
wagtail_holdingpage-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 25.2 kB

Release files / wagtail_holdingpage-0.1.3.tar.gz

Download URL wagtail_holdingpage-0.1.3.tar.gz
Size 9.8 kB
Tags Source
SHA-256 checksum
How to use checksums
2323d35d06e54c85ff8fb09a03d99be468bcfba4dee8f462da2470bff908b960
BLAKE2b-256 checksum
How to use checksums
c836da1891b8a1e3ed557b4b00e3597b68b7fff4ef602b113044b75f2c4a01b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / wagtail_holdingpage-0.1.3-py3-none-any.whl

Download URL wagtail_holdingpage-0.1.3-py3-none-any.whl
Size 15.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8b1581f4bc96bf948edd85f3d6ae71befb8ae4acbd7e5edd19a5627b9516006e
BLAKE2b-256 checksum
How to use checksums
01b492e3929fb87fecf14393831bc9ffedfcea4f645424985278ad471b49c9c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for wagtail-holdingpage 0.1.3

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.

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files No provenance

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