Skip to content

Instantly share code, notes, and snippets.

@sauravtom
Created June 26, 2012 15:04
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 sauravtom/2996304 to your computer and use it in GitHub Desktop.
Save sauravtom/2996304 to your computer and use it in GitHub Desktop.
Appspot
import webapp2
form = """
<form title="Google Something" align = "center" action = "http://www.google.com/search" target="_blank">
<input name = "q"> <input type = "submit" value="Google search">
</form>
<br>
<form title="Search something on Duck Duck go" align = "center" action = "http://www.duckduckgo.com/search" target="_blank">
<input name = "q"> <input type = "submit" value="DuckDuckGo search">
</form>
"""
class MainPage(webapp2.RequestHandler):
def get(self):
#self.response.headers['Content-Type'] = 'text/plain'
self.response.out.write(form)
app = webapp2.WSGIApplication([('/', MainPage)],
debug=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment