Did you check the WSGIApplication ?

application = webapp.WSGIApplication([('/feed/.*', MainPage)],
                                     debug=True)


On 16 juin, 03:04, Vadim Zaliva <l...@codeminders.com> wrote:
> I am trying to write Python handler which will analyze URL path. For
> example I would like it to be accessible
> as:
>
> /feed/1
> /feed/2
>
> So I've put following to app.yaml:
>
> - url: /feed/.*
>   script: feed.py
>
> In my handler I print path:
>
>     def get(self):
>         logging.debug("FEED with path '%s'" % self.request.path)
>         ...
>
> However regex matching does not seems to be working my handler never
> gets invoked and I am getting 404.
>
> If I remove "/.*" part from URL matching expression, my handler is
> invoked OK for "http://localhost:80800/feed"; URL.
>
> I am testing with dev_appserver.py
>
> What I am doing wrong?
>
> Sincerely,
> Vadim
--~--~---------~--~----~------------~-------~--~----~
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