書籍Killer Web Developmentは、開発環境でアプリケーションを作成してコミットするための公式を提供していると思います。
もちろん、データベース認証やWebサーバーのセットアップなどの環境によって異なるものがあります。
例えば、異なるデータベースに対して認証するためにあなたがdb.py
でデフォルトのコードのようなものを使用することができます。
myconf = AppConfig(reload=True)
if not request.env.web2py_runtime_gae:
# ---------------------------------------------------------------------
# if NOT running on Google App Engine use SQLite or other DB
# ---------------------------------------------------------------------
db = DAL(myconf.get('db.uri'),
pool_size=myconf.get('db.pool_size'),
migrate_enabled=myconf.get('db.migrate'),
check_reserved=['all'])
else:
# ---------------------------------------------------------------------
# connect to Google BigTable (optional 'google:datastore://namespace')
# ---------------------------------------------------------------------
db = DAL('google:datastore+ndb')