def dbcheck()

in server/avocano_api/healthchecks.py [0:0]


    def dbcheck(self, request) -> HttpResponse:
        try:
            import django.db as ddb

            dbconn = ddb.connections[ddb.DEFAULT_DB_ALIAS]
            c = dbconn.cursor()
            c.execute("SELECT 1;")
            row = c.fetchone()
            if row == None:
                raise Exception("db: invalid response")
        except Exception as e:
            logging.exception(e)
            return HttpResponseServerError("db: failed health check")
        return HttpResponse("ok")