Our comments and trackback policy You Link We Follow, You Comment We Promote
If you are a developer and have an awesome code snippet which you would like to share with the Google App Engine developers or with the rest of the world, you might think about having a platform where you can do so. Don’t worry because now Google allows you to share your code with the rest of the world at Google App Engine Cookbook. This cook book is going to be a little different and ‘too many developers are not going to spoil the recipe’.
You will find some options in the Google App Engine Cookbook. Here you can share, rate and comment on different App Engine recipes. Amaltas Bohra, Google Engineer, has written the Google App Engine Cookbook.
The App Engine team has added some stuff (codes) on the Cookbook as a sample. Its an open forum now and you can share your code easily. So what are you waiting for, start telling the world about the fabulous codes you have.
Here is a code by Google App Engine Team’s Marzia Niccolai, shared on the Cookbook:
import random
class MyModel(db.Model):
rand = db.FloatProperty()
first_property = db.StringProperty()
main():
model = MyModel()
model.rand = random.random()
model.put()
The above code is for accessing a random datastore record.

Previous Post






