Created
June 26, 2012 15:04
-
-
Save sauravtom/2996304 to your computer and use it in GitHub Desktop.
Appspot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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