Perhaps you looking to add multiple entries too app.yaml

http://code.google.com/appengine/docs/python/tools/configuration.html

That way you can point the application server at the correct py file.

2009/2/1 Pikaurd Chen <[email protected]>:
> 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
>
> >
>



-- 
Barry

- www.nearby.org.uk - www.geograph.org.uk -

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

Reply via email to