How to retrieve data from RethinkDB via Django view?
问题 Am trying to view data from RethinkDB in Django via custom middleware. Below is the middleware code am using to connect to RethinkDB @singleton class rDBMiddleware(object): connection = None def __init__(self): if self.connection == None: self.connection = r.connect(host=' 192.x.x.x ', port=28015, db=' re_test ').repl() views.py - from app.utils import rwrapper from app.utils import fields class MyTable(rwrapper): _db_table = 'test_table' name = fields.CharField(max_length=60) skill = fields