Another possible option:

Use the suggested app.yaml.

Setup your app like this:

class SomeActionHandler(webapp.Requesthandler):
   def get(self, domain):
       self.response.out.write(domain)

application = webapp.WSGIApplication([(r'/(.*)/someaction', SomeActionHandler)],
                                                               debug=True)


Now you can goto:  yourapp.com/DOMAIN.COM/someaction




Robert






On Sun, Oct 17, 2010 at 13:02, Massimiliano
<[email protected]> wrote:
> Yes!!!!!!!!!
> Thanks!!!!!!!
>
> Max
>
> 2010/10/17, sodso <[email protected]>:
>> www.urapp.com/urldomainname
>>
>> 1) your app.yaml file will have this handler
>>
>> handlers:
>> - url: /.+
>> script: code.py
>>
>> 2) code.py will have something like this
>>
>> class URLHandler(webapp.RequestHandler):
>> def get(self):
>> var1 = self.request.path #this will give you everything after the
>> www.myapp.com
>> # import os
>> # print os.environ # u can use this dict as well for whatever values u
>> r looking for from the incoming req
>>
>> def main():
>> run_wsgi_app(webapp.WSGIApplication([('/.+', URLHandler)]))
>>
>>
>> hope this helps !
>> cheers !
>>
>> --
>> 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.
>>
>>
>
>
> --
>
> My email: [email protected]
> My Google Wave: [email protected]
>
> --
> 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.
>
>

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

Reply via email to