ds
django-soet
pypi i django-soet
ds

django-soet

StackOverflow Exception Troubleshooting

by Vitor Freitas

1.0 (see all)License:MIT License
pypi i django-soet
Readme

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:

.. code-block:: console

pip install django-soet

2. Include "soet" to your INSTALLED_APPS:

.. code-block:: python

INSTALLED_APPS = [
    ...
    'soet',
]

3. Include "StackOverflowMiddleware" to your MIDDLEWARE_CLASSES:

.. code-block:: python

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:

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

GitHub Stars

23

LAST COMMIT

6yrs ago

MAINTAINERS

1

CONTRIBUTORS

1

OPEN ISSUES

1

OPEN PRs

1
VersionTagPublished
1.0
6yrs ago
No alternatives found
No tutorials found
Add a tutorial