Django the 404 and 500 pages the blarg way.
Project description
Django the 404 and 500 pages the blarg way.
Like https://github.com/404 and https://github.com/500, but for Django.
Free software: BSD license
Documentation: http://django-blarg.rtfd.org.
Warnings
Not yet tested in production anywhere.
No tests yet!
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.
Support this Epic Project
Submit issues and pull requests
Donate via gittip: https://gittip.com/pydanny
Donate via coinbase: https://coinbase.com/checkouts/fcb91011b44028b9cfe96207eecb3bcf
Donate bitcoins: 1HydU1VrMh92UtC7sWxcL6oh1LmyFTwQQw
History
0.1.3 (2013-11-22)
Documentation corrections so Sphinx works
0.1.2 (2013-11-22)
Documentation corrections so Sphinx works
0.1.1 (2013-11-22)
Fixing minor mistakes in the README
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
Built Distribution
File details
Details for the file django-blarg-0.1.3.tar.gz
.
File metadata
- Download URL: django-blarg-0.1.3.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08e1f2fc1a4eb7b759bbc79ba104bfa25cc37757318ea9b3cf6823be518dd462 |
|
MD5 | 5c1a912aaddfa760d5772010b521b917 |
|
BLAKE2b-256 | aea5c0ba764483057a239e88888cb875a03fa4608b01c269eb76d683a4fdd736 |
File details
Details for the file django_blarg-0.1.3-py2.py3-none-any.whl
.
File metadata
- Download URL: django_blarg-0.1.3-py2.py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f59e68e08d46f97c5e01e8f1791babb78a05edbf7544e32ce74e7e1ebb45403 |
|
MD5 | 7c6f4b87832ff75458279141e930255d |
|
BLAKE2b-256 | 8b47ed3fad178d6987e6a767c91391a22943c4a0d6e2638c6525ebe940f936fa |