开发者

Django app for different clients

开发者 https://www.devze.com 2022-12-28 02:17 出处:网络
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 dif

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

精彩评论

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