All,

I thought this would be easy but am having a bit of difficulty.

I'm trying to do a site where users will have profiles. So I have my
app.yaml pointing to a profile.py like so:

handlers:
 - url: /profiles
   script: profiles.py

The way I want to have the URL for profiles look is as follows:

http://www.my-app.com/profiles/username

All I can get to work is www.my-app.com/profiles

In profiles.py I have the following code:

def main():
  application = webapp.WSGIApplication(
                                                                                
[
                                                                                
        ('/profile', ProfileHandler),
                                                                                
],
                                       debug=True)
  wsgiref.handlers.CGIHandler().run(application)


I've tried changing /profile to /profile(.*) but that doesn't work.
Can anyone help me out? I would prefer not to use POST data for this.

Thanks!!

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to