Skip to main content

A small package to trigger specific non-200 HTTP responses in a Django application.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

giant-errorpages-0.1.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

giant_errorpages-0.1.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file giant-errorpages-0.1.0.tar.gz.

File metadata

  • Download URL: giant-errorpages-0.1.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.9 CPython/3.7.3 Linux/4.19.0-8-cloud-amd64

File hashes

Hashes for giant-errorpages-0.1.0.tar.gz
Algorithm Hash digest
SHA256 08c6f07edeb488a62e091d1f56011c7c2fc4a074ad557db3a3ef8eaae2621c04
MD5 800e363b68fd88dba3b7dc628f10b768
BLAKE2b-256 cb286e14851764ca4f82b0da4cc8b0eeac1991ceab47200699ff2031c05e1c02

See more details on using hashes here.

File details

Details for the file giant_errorpages-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: giant_errorpages-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.9 CPython/3.7.3 Linux/4.19.0-8-cloud-amd64

File hashes

Hashes for giant_errorpages-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7d4dd21c88dc86121d62812b96635b88ebd1dba197994f3c75ad2e2566dd4668
MD5 47a0336ca41ba843afbf43d49984694e
BLAKE2b-256 b6a2e0ca3e4b1aeaa42e14c41b84fb038318ddfefab2ebbc505315df397f5b50

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page