Django和Bootstrap:推荐什么应用程序? [英] Django and Bootstrap: What app is recommended?

查看:82
本文介绍了Django和Bootstrap:推荐什么应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想开始使用Twitter的Bootstrap来开发最近开始的Django应用程序。我有相当多的Django经验,但我完全是Bootstrap的新手。

I want to start using Twitter's Bootstrap for a recently started Django app. I have quite a bit of experience with Django, but I'm totally new to Bootstrap.

最好的方法是什么?有没有特别的Django的Boostrap应用程序,你会推荐或有经验的?

What's the best way to proceed? Are there any particular Boostrap apps for Django you would recommend or have experience with?

我明白,我可以直接使用Bootstrap,没有任何特殊的Bootstrap特定的Django应用程序。但是,我也读到,如果没有一点服务器端支持(例如将Bootstrap特定的CSS呈现为HTML格式),表单渲染不会出现得非常好。

I understand that I could use Bootstrap directly, without any special Bootstrap-specific Django apps. However, I also read that the form rendering doesn't come out particularly well without a little server side support (rendering the Bootstrap specific CSS into the form HTML, for example).

似乎有几个项目,比如脆饼,django-bootstrap-toolkit等。看他们的项目页面,我可以看到不同层次的活动和支持。如果我决定和其中一个人一起去,我当然会选择一个有一定动力的人,因此很有可能保持一段时间的支持和维持。这是非常重要的,所以即使特定的应用程序没有所有可能的功能或不那么灵活,它可能仍然是一个不错的选择,由于支持/新鲜度,可用性的例子等。

There seem to be several projects, such as crispy forms, django-bootstrap-toolkit, etc. Looking at their project pages, I can see different levels of activity and support. If I decide to go with one of those, I would of course like to pick one which has some momentum and therefore a good likelihood of staying supported and maintained for a while. This is very important and so even if the particular app doesn't have all possible features or is a bit less flexible, it might still be a good choice, due to support/freshness, availability of examples, etc.

感谢您的任何建议或反馈。

Thank you for any recommendations or feedback.

推荐答案

我使用 django-bootstrap-toolkit - 作者解释(参考其他Django / Bootstrap集成应用程序)

I used django-bootstrap-toolkit — as the author explains (with reference to other Django/Bootstrap integration apps)


模板标签和过滤器的方法似乎是对的,但是Bootstrap做的不仅仅是只是表单。

"The approach to template tags and filters seemed right, but Bootstrap does so much more than just forms."

除了表单,那么(可以像 {%form | as_bootstrap%} ,此应用程序有助于分页,将静态URL插入到Bootstrap媒体文件以及其他一些位。阅读 templatetags / bootstrap-toolkit.py 完整列表。

In addition to forms, then (which can be as simple as {% form|as_bootstrap %}, this app helps with pagination, inserting static URLs to the Bootstrap media files, and some other bits. Read templatetags/bootstrap-toolkit.py for the full list.

@dolan指出, django-bootstrap-toolkit 开发人员推荐一个新的Bootstrap v3支持项目, django-bootstrap3 。我还没有尝试过,因为自V3出来以来我还没有开始一个新项目,所以YMMV。

@dolan notes that the django-bootstrap-toolkit developer recommends a new project for Bootstrap v3 support, django-bootstrap3. I haven't tried this yet as I haven't started a new project since V3 came out, so YMMV.

这篇关于Django和Bootstrap:推荐什么应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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