app.yaml will cause people.py to run every time a url matching /
people/.* is encountered.  What people.py does from there is really up
to it; you can certainly have one handler that matches people/.* if
that's appropriate for your application, or you can have many handlers
that match regexes starting with people/ based on what comes next.
You should probably have a catchall /people/.* handler last if you do
this, if only to display something nicer than the default 404 page.

On Dec 22, 10:08 pm, "Dave Warnock" <[email protected]> wrote:
> Hi,
>
> Using the basic included webapp I don't find the docs particularly
> clear on the relationship between
> app.yaml and the line that creates the WSGIApplication in the script.
>
> Do the two url's need to match exactly? I can't find any examples in
> the docs of how the python scripts should look when the app.yaml has
> multiple urls going to different scripts.
>
> So far it seems to me that if I have in app.yaml
>
> - url: /people/.*
>  script: people.py
>
> I am required to have in people.py
>
> application = webapp.WSGIApplication([('/people/.*', People)])
>
> Am I correct?
>
> Thanks
>
> Dave
>
> --
> Dave Warnock:http://42.blogs.warnock.me.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