title: How display request error in custom django admin error page
body: <p>Currently, when 500 errors occur I show the user my custom 500.html error page. The app is used by both administrators and clients, which users are respectively in groups "operator" and "client". The information shown depends on that group.</p>
  
  <p>I would like to apply that concept to the error page. I would like to show the same Traceback error shown when DEBUG = True (not necessary the same style) when logged user is from group "operator".</p>
  
  <p><img src="https://i.stack.imgur.com/99wpH.png" alt="Information I would like to show to the operator"></p>
  
  <p>I guess there will be an attribute in the request that I can pass through the template and print the errors, but I can't find out which attribute is that. This is the function I use to render the 500.html page:</p>
  
  <pre><code>def error_500(request):
      data = {}
      if request.user.groups.filter(name='operator').exists():
          # fill the data dict with the traceback/errors
      return render(request,'app/errors/500.html', data)
  </code></pre>
  
  <p>Thanks in advance.</p>