Skip to content

Instantly share code, notes, and snippets.

@wowkalucky
Last active April 14, 2022 16:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wowkalucky/67a51242915498acb44fbfe63e864523 to your computer and use it in GitHub Desktop.
Save wowkalucky/67a51242915498acb44fbfe63e864523 to your computer and use it in GitHub Desktop.
Mako Undefined NameException debugging
# 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