Django app for different clients
I want both mobile phones and regular PCs to be able to use my app by navigating to the same URL, but I want them to get different versions 开发者_如何学Goof the code. How do I tell Django to give different versions of the code to different clients?
Detect the HTTP_USER_AGENT from your view. Read more about it on django docs.
精彩评论