开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜