Giant Error Pages
A small package to trigger specific non-200 HTTP responses. This is useful for previewing your error pages while DEBUG=True. Once enabled, you will be able to access three new routes:
- /errors/404/, which will return a 404 response and error page.
- /errors/403/, which will return a 403 response and error page.
- /errors/500/, which will return a 500 response and error page.
Installation
To install with Poetry, run:
$ poetry add giant-errorpages
You should then add "errorpages" to the INSTALLED_APPS in your settings file. Finally, update your root urlpatterns to include:
path("errors/", include("errorpages.urls"), name="errorpages"),
Preparing for release
In order to prepare the package for a new release on TestPyPi and PyPi, you need to update the version number in the pyproject.toml. The version numbering must also follow the Semantic Version rules which can be found here https://semver.org/.
Publishing
Once the version number has been updated, run:
$ poetry build
This will package the project ready for publication:
$ poetry publish
...will then publish the package to PyPi. You will need to enter the username and password for the account which can be found in the company password manager.
Metadata
Release files for giant-errorpages 0.1.0
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 | |
|---|---|---|---|---|
| giant-errorpages-0.1.0.tar.gz | 3.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| giant_errorpages-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.9 kB
Release files / giant-errorpages-0.1.0.tar.gz
| Download URL | giant-errorpages-0.1.0.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
08c6f07edeb488a62e091d1f56011c7c2fc4a074ad557db3a3ef8eaae2621c04
|
|
BLAKE2b-256 checksum How to use checksums |
cb286e14851764ca4f82b0da4cc8b0eeac1991ceab47200699ff2031c05e1c02
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.9 CPython/3.7.3 Linux/4.19.0-8-cloud-amd64
|
Release files / giant_errorpages-0.1.0-py3-none-any.whl
| Download URL | giant_errorpages-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7d4dd21c88dc86121d62812b96635b88ebd1dba197994f3c75ad2e2566dd4668
|
|
BLAKE2b-256 checksum How to use checksums |
b6a2e0ca3e4b1aeaa42e14c41b84fb038318ddfefab2ebbc505315df397f5b50
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.9 CPython/3.7.3 Linux/4.19.0-8-cloud-amd64
|
Security for giant-errorpages 0.1.0
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.