[google-appengine] URL Handler RegExp

2011-03-05 Thread Advanced Media Technologies
Whats wrong with this handler in app.yaml ?

- url: /(\d+)
  script: index.py?id=\1
  
When I goto http://localhost/34, the console shows 404 but doesnt say Not 
found error: /34 did not match any patterns in application configuration.

-- 
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.



[google-appengine] Re: URL Handler RegExp

2011-03-05 Thread Advanced Media Technologies
Ah...Im treating app.yaml as .htaccess.
So now I did application = webapp.WSGIApplication([('/', HomePage), ('/\d+', 
HomePage)], debug=True)
and it works but now how do I mention (\d+) as index.py?code=\1 ?

-- 
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.