On Aug 25, 10:29 pm, pistacchio <pistacc...@gmail.com> wrote:
> Hi,
> maybe I'm missing something from the documentation (I'm just
> starting), but generally, how does url handling work in GAE?
>
> Apart from the basics like
> ---
> application = webapp.WSGIApplication([('/', MainPage), ('/test',
> Test)])
> ---
> that map myapplication and myapplication/test, how do I map something
> like myapplication/forum/show/1234 ?
>
> Thanks in advance
regex [0-9]* matches 1234
webapp.WSGIApplication('/([0-9]*)/([^/]*)',Id),('/([0-9]*)',Id)
then match id from query to instance
a=db.get(db.Key(str(db.Key.from_path('A',int(id)))))
Sincerely
NickRTZ.

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