*GAE – Not Working*
The app works well locally and also on GAE-launcher, but once uploaded
(deployed) on to GAE, the app does not work and gives an error.
*Code and Error Provided Below*
*MODEL (db.py)*
if not request.env.web2py_runtime_gae:
db = DAL('sqlite://storage.sqlite',pool_size=1,check_reserved=['all'])
else:
db = DAL('google:datastore')
session.connect(request, response, db=db)
from gluon.tools import Auth, Crud, Service, PluginManager, prettydate
auth = Auth(db)
crud, service, plugins = Crud(db), Service(), PluginManager()
auth.define_tables(username=False, signature=False)
auth.settings.registration_requires_verification = False
auth.settings.registration_requires_approval = False
auth.settings.reset_password_requires_verification = True
db.define_table('person',
Field('name'),
Field('age', 'integer'),
Field('birthday', 'date'),
Field('married', 'boolean'),
Field('zipcode', 'integer'),
Field('photo', 'upload', uploadfield='image_file'),
Field('image_file', 'blob'),
format='%(name)s'
)
*CONTROLLER (default.py)*
import gluon.contenttype
import gluon.fileutils
def add_person():
formP = SQLFORM(db.person)
if formP.process().accepted:
response.flash = 'Person Added'
return dict(formP=formP)
*VIEW*
The corresponding view in HTML were created that displays the Dictionarie :
formP
Add Person
{{=formP}}
*ERROR*
When uploaded on GAE, the app does not work. It gives the following error:
Internal error
Ticket issued: *unrecoverable
<http://appname.appspot.com/admin/default/ticket/unrecoverable>*
If anyone can kindly help to resolve this issue, it will very helpful, and
I shall be very grateful.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.