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

Comments