import re
MOBILE_AGENT_RE = re.compile('.*(iphone|mobile|androidtouch)', re.IGNORECASE)


class MobileMiddleware(object):

    def process_request(self, request):
        pass
Change Django Templates Based on User-Agent