Question: from gluon.contrib.appconfig import AppConfig from gluon.tools import Auth configuration = AppConfig ( reload = True ) if not request.env.web 2 py _ runtime _ gae:

from gluon.contrib.appconfig import AppConfig
from gluon.tools import Auth
configuration = AppConfig(reload=True)
if not request.env.web2py_runtime_gae:
#
# If NOT running on Google App Engine use sakitce or other ua
db= DAL("mysql://root:rootelocalhost/test?set_encoding=utf8mb4",
migrate_enabled=False)
etse:
# " Connect to Google BigTable (optional 'google:datastore:/) namespace't)
#
db= DAL('google:datastore+ndb')
A store sessions and tickets there
*
session. connect (request, response, db=db)
*
or store session in Mencache, Redis, etc.
from gluon.contrib. nendb import MEMDB
# from google.appengine.api.memcache import client
" session, connect (request, response, client()))
#
db. define_tablel 'authors',
Field'('id', 'integer'),
Field('name', requires=IS_NOT_EMPTY()),
Field('bio', 'text'),
field('email', requires=IS_EMaIL()),Where is the database server hosted
 from gluon.contrib.appconfig import AppConfig from gluon.tools import Auth configuration = AppConfig(reload=True)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!