Created
September 23, 2011 14:17
-
-
Save 0xPr0xy/1237460 to your computer and use it in GitHub Desktop.
minidetector
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from microdetector import detect_mobile | |
@detect_mobile | |
def my_mobile_view(request): | |
if request.mobile: | |
#do something with mobile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment