Source

django_mobile_utils / mobile_utils / context_processors.py

1
2
3
4
5
def mobile_browser(request):
    dict = {'mobile_browser': False}
    if hasattr(request, 'is_mobile'):
        dict['mobile_browser'] = request.is_mobile
    return dict