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 Wagtail pages to behave as
normal, or allow the site to behave as normal for admins. In your
settings file you can exclude certain URLs (eg /admin) or certain requests
from being affected.
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 need a way 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.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| wagtail_holdingpage-0.1.5.tar.gz | 9.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| wagtail_holdingpage-0.1.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 25.2 kB
Release files / wagtail_holdingpage-0.1.5.tar.gz
| Download URL | wagtail_holdingpage-0.1.5.tar.gz |
|---|---|
| Size | 9.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7d7c39ae2cd84b0620a99b2b17fdce535e8a06bc7816057cc58b063258b3b2e9
|
|
BLAKE2b-256 checksum How to use checksums |
d5ea5019df79d72bfe1305265d863d7804a179a323cfdf4200135ec6a03c8ac5
|
| 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.5-py3-none-any.whl
| Download URL | wagtail_holdingpage-0.1.5-py3-none-any.whl |
|---|---|
| Size | 15.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b7fbd0c7c93ac922a9c09098c92d5d3d8db46eb20ffeb3182d5b77780932176a
|
|
BLAKE2b-256 checksum How to use checksums |
428b6913dfe222539188f1b48bd93924222b670835dd9e5c5627bd59f1ba4ceb
|
| 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.5
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.