python - Request handler not working in GoogleAppEngine WSGI application -


i new web development. have written following python code input in form , send '/testform'

import webapp2  form="""     <form action="/testform">         <input name="q">         <input type="submit">     </form> """  class mainhandler(webapp2.requesthandler):     def get(self):         self.response.out.write(form)  class testhandler(webapp2.requesthandler):     def get(self):         q=self.request.get("q")         self.response.out.write(q)  app = webapp2.wsgiapplication([     ('/', mainhandler),('/testform',testhandler) ], debug=true) 

but when opening file in browser, nothing being displayed. why so?


Comments

Popular posts from this blog

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

c# - Search and Add Comment with OpenXML for Word -