I would like to include the contents of request.user in the context details emailed to the site admins when an error occurs, as well as the traceback and request.GET/POST/COOKIES/META
Any help appreciated.
I would like to include the contents of request.user in the context details emailed to the site admins when an error occurs, as well as the traceback and request.GET/POST/COOKIES/META
Any help appreciated.
Because process_exception middleware gets passed the request object, you can add whatever info you like to request.META
Make a middleware that has a
process_exception
method. http://docs.djangoproject.com/en/dev/topics/http/middleware/#process-exceptionI hope that gives you some ideas!