将Web Friendly Django应用程序转换为Mobile Friendly Django应用程序 [英] Convert Web Friendly Django app to a Mobile friendly django app

查看:70
本文介绍了将Web Friendly Django应用程序转换为Mobile Friendly Django应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经制作了一个桌面友好的django应用程序,并且不希望不必重写所有html/css即可在移动浏览器上正确查看.

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.

我使用的是Django 1.5和python 2.7

I'm on django 1.5 and python 2.7

是否有一个软件包或库或更快的方法来有效地创建我的django(网络)应用程序的移动版本,而不必用html/css重新编写一个全新的模板?

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 ?

谢谢!

推荐答案

总之,没有.您将不得不重写大多数模板,以响应"较小的(移动)屏幕尺寸.

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

对于HTML5/CSS3框架,我建议 Bootstrap .易于上手,易于扩展.

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

这篇关于将Web Friendly Django应用程序转换为Mobile Friendly Django应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆