Simon Willison’s Weblog

Subscribe

1 item tagged “minidetector”

2008

minidetector. Neat piece of Django middleware that adds a “mobile = True” attribute to the request object if the request’s user-agent matches a list of strings of known low-power browsers in mobiles, PDAs or game consoles.

# 15th August 2008, 8:21 am / django, middleware, minidetector, mobile, python