I know the table which define in db.py will be created automatically,
but I haven't any entity in the GAE web interface, What can I do?

On 11月20日, 下午1时50分, mdipierro <[EMAIL PROTECTED]> wrote:
> appadmin does not work well on GAE. You should use the GAE web
> interface instead.
>
> Anyway, if you get to appadmin, then your code below is doing its job.
>
> Massimo
>
> On Nov 19, 7:47 pm, sharekey <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi All,
> >     I get "No databases in this application" when I 
> > browsehttp://127.0.0.1:8080/[application]/appadmin, I'm using GAE on local
> > (it work if I run web2py.py)
>
> >     I just write below code in db.py in my app for test.
>
> > 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
>
> > #My code
> > db.define_table('users',
> >                 SQLField('name', 'string'),
> >                 SQLField('email', 'string'))
>
> >     How can I make it work on GAE?
>
> > Thanks for any help!
> > Sharekey- 隐藏被引用文字 -
>
> - 显示引用的文字 -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to