webdjangomobiledetectionuseragentmiddlewaredevelopmentminidetector - Google Code
minidetector - Google Code code.google.com
"A simple middleware and associated decorator that will add a ".mobile" attribute to your request objects, which, if True, means the requester is coming to you from a mobile phone (cellphone), PDA, or other device that should be considered small screened, or have an underpowered browser, such as games consoles."