Last active
April 14, 2022 16:20
-
-
Save wowkalucky/67a51242915498acb44fbfe63e864523 to your computer and use it in GitHub Desktop.
Mako Undefined NameException debugging
This file contains hidden or 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()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment