def handle_uncaught_exception(self, request, resolver, exc_info):
    '\n        Processing for any otherwise uncaught exceptions (those that will\n        generate HTTP 500 responses). Can be overridden by subclasses who want\n        customised 500 handling.\n\n        Be *very* careful when overriding this because the error could be\n        caused by anything, so assuming something like the database is always\n        available would be an error.\n        '
    from django.conf import settings
    if settings.DEBUG_PROPAGATE_EXCEPTIONS:
        raise
    logger.error('Internal Server Error: %s', request.path, exc_info=exc_info, extra={'status_code': 500, 'request': request})
    if settings.DEBUG:
        from django.views import debug
        return debug.technical_500_response(request, *exc_info)
    if (resolver.urlconf_module is None):
        six.reraise(*exc_info)
    (callback, param_dict) = resolver.resolve500()
    return callback(request, **param_dict)
Processing for any otherwise uncaught exceptions (those that will
generate HTTP 500 responses). Can be overridden by subclasses who want
customised 500 handling.

Be *very* careful when overriding this because the error could be
caused by anything, so assuming something like the database is always
available would be an error.
def handle_uncaught_exception(self, request, resolver, exc_info):
    '\n        Processing for any otherwise uncaught exceptions (those that will\n        generate HTTP 500 responses). Can be overridden by subclasses who want\n        customised 500 handling.\n\n        Be *very* careful when overriding this because the error could be\n        caused by anything, so assuming something like the database is always\n        available would be an error.\n        '
    from django.conf import settings
    if settings.DEBUG_PROPAGATE_EXCEPTIONS:
        raise
    logger.error('Internal Server Error: %s', request.path, exc_info=exc_info, extra={'status_code': 500, 'request': request})
    if settings.DEBUG:
        from django.views import debug
        return debug.technical_500_response(request, *exc_info)
    if (resolver.urlconf_module is None):
        six.reraise(*exc_info)
    (callback, param_dict) = resolver.resolve500()
    return callback(request, **param_dict)