Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David M Kroenke, David J Auer

6th Edition

0132742926, 978-0132742924

More Books

Students also viewed these Databases questions