Detecting a Mobile Browser on Google App Engine
uastring = self.request.headers.get('user_agent')Via stack overflow
if "Mobile" in uastring and "Safari" in uastring:
# do iphone / ipod stuff
uastring = self.request.headers.get('user_agent')Via stack overflow
if "Mobile" in uastring and "Safari" in uastring:
# do iphone / ipod stuff
Comments