django/core/handlers/exception.py
def handle_uncaught_exception(request, resolver, exc_info):
    """
    Processing for any otherwise uncaught exceptions (those that will
    generate HTTP 500 responses).
    """
    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:
        return debug.technical_500_response(request, *exc_info)

    # Return an HttpResponse that displays a friendly error message.
    callback, param_dict = resolver.resolve_error_handler(500)
    return callback(request, **param_dict)

    Processing for any otherwise uncaught exceptions (those that will
    generate HTTP 500 responses).
    
Processing for any otherwise uncaught exceptions (those that will
generate HTTP 500 responses).
Processing for any otherwise uncaught exceptions ( those that will generate HTTP 500 responses ) .
def handle_uncaught_exception(request, resolver, exc_info):
    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:
        return debug.technical_500_response(request, *exc_info)
    callback, param_dict = resolver.resolve_error_handler(500)
    return callback(request, **param_dict)
def handle_uncaught_exception ( request , resolver , exc_info ) : 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 : return debug . technical_500_response ( request , * exc_info ) callback , param_dict = resolver . resolve_error_handler ( 500 ) return callback ( request , ** param_dict )
Processing for any otherwise uncaught exceptions (those that will
generate HTTP 500 responses).
Processing for any otherwise uncaught exceptions ( those that will generate HTTP 500 responses ) .
"""
    Processing for any otherwise uncaught exceptions (those that will
    generate HTTP 500 responses).
    """ # Return an HttpResponse that displays a friendly error message.
request
resolver
exc_info