https://github.com/emre/django-stackoverflow-trace
Django error page w/ a stackoverflow search link.
https://github.com/emre/django-stackoverflow-trace
Last synced: about 2 months ago
JSON representation
Django error page w/ a stackoverflow search link.
- Host: GitHub
- URL: https://github.com/emre/django-stackoverflow-trace
- Owner: emre
- License: mit
- Archived: true
- Created: 2016-01-23T07:33:30.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-11-07T19:04:51.000Z (over 7 years ago)
- Last Synced: 2024-09-15T09:02:05.430Z (8 months ago)
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 235
- Watchers: 12
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- starred-awesome - django-stackoverflow-trace - Django error page w/ a stackoverflow search link. (Python)
README
django-stackoverflow-trace
================A custom Django technical error template that puts a related stackoverflow search link under the exception message.
### Installation
```bash
$ (sudo) pip install django_stackoverflow_trace
```### Setting it up
Add the custom middleware to your ```MIDDLEWARE_CLASSES``` in the **settings.py**.
```python
if DEBUG:
MIDDLEWARE_CLASSES += ('django_stackoverflow_trace.DjangoStackoverTraceMiddleware', )
```Next time you hit an error in your app, you will see an external link to a custom google search.
### Using google search instead of stackoverflow
Add this into your settings.py
```DJANGO_STACKOVERFLOW_TRACE_SEARCH_SITE = "googlesearch"```