Convert Web Friendly Django app to a Mobile friendly django app

不想你离开。 提交于 2019-12-10 18:58:19

问题


I've made a desktop-friendly django app and would prefer not to have to rewrite all of the html/css to allow proper view on mobile browsers.

I'm on django 1.5 and python 2.7

Is there a package or library or quicker way to efficiently create a mobile version of my django (web) app instead of having to re-write a whole new template with html/css ?

Thank you!


回答1:


In a word, no. You're going to have to rewrite most of your templates to be "responsive" to smaller (mobile) screen sizes.

I'd recommend Bootstrap for your HTML5/CSS3 framework. Easy to get started, easy to extend.




回答2:


Use the bootstrap. I developed the django app too using the bootstrap and it works fine in all smartphone, tablet and desktop devices.



来源:https://stackoverflow.com/questions/18666243/convert-web-friendly-django-app-to-a-mobile-friendly-django-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!