Archive for the ‘Python’ Category

Render Bootstrap 3 forms with WTForms and Jinja

November 10th, 2013 14 comments

We all know amazing libraries Jinja and WTForms which simplify our life in rendering web pages for user. By default, they don’t provide any advanced formatting or styling. One of the ways to solve this is to use Bootstrap library. This post will show how to integrate this three libraries all together using forms as example.

NOTE: Code for this post is embed at the end of the post or you can jump directly to gist in the new tab (recommended):

Read more…

Categories: Python, Web Tags: , ,

Easy running nose tests with two and more named attribute

September 30th, 2011 No comments

For running tests there are a lot of different tools. One of them is nose-python. You can easily split tests by groups using “attr” annotation. More info in the doc . But doc don’t say how to run tests when you must choose more than one attribute. It is easy:

nose -A "type=='unit' or type=='apitest'"