Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 0.1.7 instead.
Reason given by maintainers: old release with unwanted 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.1

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.1
File Size Uploaded Provenance
wagtail_holdingpage-0.1.1.tar.gz 9.5 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 24.5 kB

Release files / wagtail_holdingpage-0.1.1.tar.gz

Download URL wagtail_holdingpage-0.1.1.tar.gz
Size 9.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ab72bd11520dc0034bb5e57f79297ebac5e2107698f1741cfedae0597f30cb44
BLAKE2b-256 checksum
How to use checksums
55ecf1d199bff75ba8d9a08ab3739dc6b17598ae3b1dcab5e0a0be1641cf3710
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.1-py3-none-any.whl

Download URL wagtail_holdingpage-0.1.1-py3-none-any.whl
Size 15.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6955cacf0accf1256b53412d67d2485f501cfd2917c329f418dac45ae8ac6aa3
BLAKE2b-256 checksum
How to use checksums
b4292963e2cbfa57883c6aabe7e5f8173240ca680e51ceddd91f8cc0587c811c
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.1

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.1 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