Question: 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
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
