mmm.... if you used the welcome app as a template (that is model/db.py)
would this still be an issue?
I think you can assume apps will be "created" from the welcome as a
template, so this will be there:
---------------------------------------------
#!/usr/bin/python
# -*- coding: utf-8 -*-
# ########################################################################
# # This scaffolding model makes your app work on Google App Engine too
# ########################################################################
try:
from gluon.contrib.gql import * # if running on Google App Engine
except:
db = SQLDB('sqlite://storage.db') # if not, use SQLite or other DB
else:
db = GQLDB() # connect to Google BigTable
session.connect(request, response, db=db) # and store sessions there
# ########################################################################
# # uncomment the following line if you do not want sessions
# session.forget()
# ########################################################################
--------------------------------
All you need to do is add the db.py from welcome to your app.
I think this should be good enough, and you should not need any
instructions.
Am I wrong?
Regards,
Yarko
On Fri, Feb 20, 2009 at 5:40 AM, Francisco Gama <[email protected]>wrote:
>
> oh... better yet. That will be updated.
>
> I just never used GAE. I have to give it a try.
>
> On Feb 20, 11:30 am, Markus Gritsch <[email protected]> wrote:
> > On Fri, Feb 20, 2009 at 12:21 PM, Francisco Gama
> >
> > <[email protected]> wrote:
> >
> > > And thank you for your tip on GAE. Maybe It should come in a README
> > > file... or something..
> >
> > The file db.py of a freshly created application already contains this
> hint:
> >
> > # # uncomment the following line if you do not want sessions
> > # session.forget()
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---