Skip to main content

Django the 404 and 500 pages the fun and easy way.

Project description

https://badge.fury.io/py/django-blarg.png https://pypip.in/d/django-blarg/badge.png

Django the 404 and 500 pages the fun and easy way.

Like https://github.com/404 and https://github.com/500, but for Django.

Warning

Not yet tested in production anywhere.

Usage

Get the package:

pip install django-blarg

Wire into your project’s root URLConf:

from blarg import error_500, error_404

urlpatterns += patterns("",
    url(r"^500$", error_500, name="error_500"),
    url(r"^404$", error_404, name="error_404"),
)

Fire up the Django test server

python manage.py runserver

Test it out!

Troubleshooting

You probably already have them, but you’ll need 500.html and 404.html templates in the the root of a templates directory.

Features

  • The 500 error template is 100% isolated from Django’s template mechanisms.

  • Works with Django 1.0 upwards. Maybe for earlier, test it and see!

  • Works with every version of Python ever supported by Django.

  • Works on every HTTP method.

History

0.1.0 (2013-11-22)

  • First release on PyPI.

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

django-blarg-0.1.1.tar.gz (5.2 kB view details)

Uploaded Source

File details

Details for the file django-blarg-0.1.1.tar.gz.

File metadata

File hashes

Hashes for django-blarg-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7ea39dc4ac8572893cfed0553397f45753528516eb0173edc06a1f4c5ee8b438
MD5 ace7602321478bb6dbeac7e7b3d4953a
BLAKE2b-256 b88b0ad3df3933ba79420c804187ae938cfeba220cc4ba15475c3b35f865ac08

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