Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: a1f38546de
Fetching contributors…

Cannot retrieve contributors at this time

executable file 18 lines (13 sloc) 0.498 kb
import wsgiref.handlers
from google.appengine.ext import webapp
from google.appengine.ext.webapp import template
from models import Bin
class MainHandler(webapp.RequestHandler):
def get(self):
self.response.out.write(template.render('templates/main.html', {}))
def post(self):
bin = Bin()
bin.put()
self.redirect('/%s' % bin.name)
if __name__ == '__main__':
wsgiref.handlers.CGIHandler().run(webapp.WSGIApplication([('/', MainHandler)], debug=True))
Jump to Line
Something went wrong with that request. Please try again.