Skip to content
This repository has been archived by the owner on Dec 21, 2022. It is now read-only.

emre/django-stackoverflow-trace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-stackoverflow-trace

A custom Django technical error template that puts a related stackoverflow search link under the exception message.

Installation

$ (sudo) pip install django_stackoverflow_trace

Setting it up

Add the custom middleware to your MIDDLEWARE_CLASSES in the settings.py.

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"

About

Django error page w/ a stackoverflow search link.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages