django常用组件学习1——django-filter

我们平常用django做的列表页面都会有很多查询条件。在提交查询时,views里会接收查询表单传递过来的参数,然后在queryset中根据查询条件进行过滤,最后要把过滤结果和本次查询参数在传到模板页面进行显示。django-filter组件把以上操作进行了封装,简化代码量。

Read More

Building Social Apps with Mezzanine: Drum

Mezzanine has come a long way over the last few years, now powering hundreds of rich, content-driven sites. For the most part these sites follow a similar pattern, one which Mezzanine is heavily geared towards: B2C sites comprised of heterogeneous, hierarchical content. In this regard Mezzanine has been a huge success, however in its entirety it’s capable of quite a lot more. Out of the box it provides a range of useful utilities, that aren’t particularly geared towards a typical corporate site, but instead are aimed at a more social style of web application. These include things such as public user accounts with configurable profiles, threaded comment discussions, ratings, and much more - features that form the foundation of many of today’s most popular social web apps. This presents Mezzanine as a great foundation for building all types of social web applications, not just corporate, content-driven sites.

Read More