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
# https://stackoverflow.com/a/536087/1587104 | |
try: | |
return render_to_response("<problem-template.html>", context) | |
except: | |
from mako import exceptions | |
print('*'*99) | |
print(exceptions.text_error_template().render()) |