Answered step by step
Verified Expert Solution
Question
1 Approved Answer
configuration = AppConfig ( reload = True ) env.web 2 py _ runtime _ gae: A If NOT running on Google App Engine use SQLite
configuration AppConfigreloadTrue
env.webpyruntimegae:
A If NOT running on Google App Engine use SQLite or other DB
db DALmysql:root:root@localhosttestsetencodingutfmb
migrateenabledFalse
else:
# Connect to Google BigTable optional 'google:datastore:namespace
#
DALgoogle:datastorendb
# store sessions and tickets there
#
session. connect request, response,
# or store session in Memcache; Redis, etc.
# from gluon.contrib.memdb import MEMDB
# from google.appengine. api.memcache import client
# session. connect request response, MEMDBclient
#
db definetableauthors
Fieldid 'integer'
Fieldname requiresISNOTEMPTY
Fieldbio 'text'
Fieldemail requiresISEMAIL
db def inetablebooks
Fieldid 'integer'
Fieldtitie requires'ISNOTEMPTY
Fieldauthor 'reference authors'
Fieldpublicationyear', 'integer', requiresISINTINRANGE
Fieldsummary 'text'
In webpy what is the purpoes of the field class in table definitions?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started