Skip to content

Instantly share code, notes, and snippets.

@pifantastic
Created September 26, 2012 02:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pifantastic/3785628 to your computer and use it in GitHub Desktop.
Save pifantastic/3785628 to your computer and use it in GitHub Desktop.
def post(self):
newgroceries = Grocery_Item(
item_name=self.request.POST['new_name'],
item_location=self.request.POS['new_location'],
item_stock=self.request.POST['new_stock']
)
newgroceries.put()
self.redirect('/')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment