if you decide to implement Django (rather than the basic handler that
comes with appengine) then you can specify wildcard urls that pass
arguments to your handlers.
http://docs.djangoproject.com/en/dev/topics/http/urls/
The alternative approach (hinted at by vp) is to put a path in your
app.yaml that will match and then put in your handler script:
- url: /foo/.*
script: foo.py
class GetFoo(webapp.RequestHandler):
def get(self):
foo_key_match = re.search('^/foo/([^/]+)$', self.request.path)
if foo_key_match:
apps_binding = []
apps_binding.append(('/foo/.*', GetFoo))
application = webapp.WSGIApplication(apps_binding, debug=True)
On Aug 22, 6:31 am, vp <[email protected]> wrote:
> Although i doubt following is going to work, but give it a try
> - url: /ill/request/new/(.*)
>
> Either way, do you have a handler for each:
> agRyY2xzcgwLEgZQYXRyb24YNAw and agRyY2xzcgwLEgZQYXRyb24YNgw
>
> If not, i dont think you can treat the appengine way to handling urls
> similar to the pretty urls you can get in Zend Framework on RoR. What
> i would do is below:
>
> http://localhost:8080/ill/request/new?key=agRyY2xzcgwLEgZQYXRyb24YNAw
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---