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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -