This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if settings.DEBUG: | |
from django.core.signals import got_request_exception | |
import traceback | |
def _print_request_error(sender, request, **kwargs): | |
traceback.print_exc() | |
got_request_exception.connect(_print_request_error) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def x(): | |
print "hello world" |