[google-appengine] Handler Scripts App Caching and webapp2
As i see when python 2.7 and webapp2 is used there is no need to write main function in handler script to make it cache able It will be good idea to write about this into documentation here http://code.google.com/appengine/docs/python/runtime.html#App_Caching -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/0MZLkGe_a-MJ. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Incorrect results of allocate_ids when running on local dev_appserver.py
this code: class AnyYourDBModelClass(db.Model): some_uid = db.IntProperty() #=key handmade_key = db.Key.from_path('AnyYourDBModelClass', 1) numid_start, numid_end = db.allocate_ids(handmade_key, 1); allocate_ids must return unique values forever but this is not true for local dev_appserver.py, values repeated after each restart of dev_appserver.py (db is not cleaned) -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/GPUZZOMCuycJ. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Python 2.7 threadsafe: true running on local
Does anybody could run the base sample for Python 2.7 http://code.google.com/appengine/docs/python/gettingstartedpython27/helloworld.html on* local machine* with parameter threadsafe: true in yaml This sample generate error: Could not find module helloworld.app the only way this sample works on my computer is to change this line "script: helloworld.app" to this "script: helloworld.py.app" and add def main(): app.run(); if __name__ == "__main__": main() to helloworld.py And also what is official way to add webapp2 and jinja2 on local computer i know two working solutions: 1) Add webapp2 jinja2 dirs to my app folder and exlude them in app.yaml 2) Add this libs to GAPP lib folder and change dev_appserver.py adding this lines os.path.join(DIR_PATH,'lib','jinja2'), os.path.join(DIR_PATH,'lib','webapp2') to EXTRA_PATHS list Is any elegant solution to make webapp2 and jinja2 work locally? -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/qFolbjU1WSIJ. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.