Change Django Templates Based on User-Agent

前端 未结 10 2522
耶瑟儿~
耶瑟儿~ 2020-12-07 11:37

I\'ve made a Django site, but I\'ve drank the Koolaid and I want to make an IPhone version. After putting much thought into I\'ve come up with two options:

10条回答
  •  执念已碎
    2020-12-07 11:55

    How about redirecting user to i.xxx.com after parsing his UA in some middleware? I highly doubt that mobile users care how url look like, still they can access your site using main url.

提交回复
热议问题