A simple Django Middleware for Exception Troubleshooting.
A simple Django Middleware for Exception Troubleshooting. It is meant to be used in debug mode only.
In a nutshell, the Middleware intercepts a exception thrown by a view and look up for the three most relevant questions on StackOverflow and print the result to the console.
1. Install using pip:
pip install django-soet
2. Include “soet” to your INSTALLED_APPS:
INSTALLED_APPS = [ ... 'soet', ]
3. Include “StackOverflowMiddleware” to your MIDDLEWARE_CLASSES:
MIDDLEWARE_CLASSES = ( ... 'soet.middleware.StackOverflowMiddleware', )
4. Make sure you are running your project with DEBUG=True.
5. Start your development server and wait for the view exceptions (or not).
This is how it looks like in your Terminal:
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size django-soet-1.0.tar.gz (3.8 kB)||File type Source||Python version None||Upload date||Hashes View hashes|