Hi guys,
   Now, I have to add all my handler in a 'main.py', like this

application = webapp.WSGIApplication([('/', MainPage),
                                         (r'/([0-9]+).html', MainPage),
                                         (r'/res/(.*).html/(.*)',  
ResPage),
                                         (r'/res/(.*).html', ResPage),
                                         (r'/(cat|thumb|src)/(.*)/(.*) 
\.(gif|jpg|png)', ViewImage),
                                         ('/post', Board),
                                        ……………………

Can I separate the handlers to other py files?  like this

application = webapp.WSGIApplication([('/', pyfile1.MainPage),
                                         (r'/([0-9]+).html',  
pyfile2.MainPage),



Thanks


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to