Detecting a Mobile Browser on Google App Engine

uastring = self.request.headers.get('user_agent')
if "Mobile" in uastring and "Safari" in uastring:
  # do iphone / ipod stuff
Via stack overflow

Popular posts from this blog

You Are What You Think People Think About You

Cooking looks like an unforgiving art

Did NDTV Just Twisted Words?