log exception in the logs to debug issue

This commit is contained in:
Zia Fazal
2015-10-20 14:22:26 +05:00
parent 300bd43172
commit b9dfcb2253

View File

@@ -84,6 +84,7 @@ def handle_500(template_path, context=None):
# In debug mode let django process the 500 errors and display debug info for the developer
raise
else:
log.exception("Error in django view.")
return render_to_response(template_path, context)
return inner
return decorator