Skip to content
/ soet Public
forked from vitorfs/soet

StackOverflow Exception Troubleshooting

License

Notifications You must be signed in to change notification settings

icotoi/soet

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StackOverflow 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.

Quick Start

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).

Preview

This is how it looks like in your Terminal:

https://github.com/vitorfs/soet/raw/master/soet.png

About

StackOverflow Exception Troubleshooting

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%