tipfy.ext.httpexceptions is a middleware to catch server errors and show proper page.
Setup:
To use this extension in your application follow few simple steps:
* Add to buildout.cfg egg import
* Add templates 404.html and 500.html to 'common/templates/' folder (place where common templates usually located)
* Modify config.py and add folowing lines::
# Middlewares config
config['tipfy'] = {
'middleware': [
# add this line to start of the list
'tipfy.ext.httpexceptions.middleware.HTTPExceptionMiddleware',
..
]
}
Requirements:
- Python
Comments not found