'Process response'

def process_response(self, request, response):

    if settings.QUERY_DEBUG:
        from django.db import connection
        totaltime = float(0)
        for q in connection.queries:
            totaltime += float(q['time'])
        if (len(connection.queries) > 3):
            if settings.QUERY_DEBUG_FULL:
                print '===    DB    Queries:'
                for q in connection.queries:
                    print q
            print '===    DB    Query    report:'
            print ('---        Total    time:    ' + str(totaltime))
            print ('---        Total    queries:    ' + str(len(connection.queries)))
    return response
