<s> from blog . models import * <EOL> db . connect ( ) <EOL> print ( "<STR_LIT>" ) <EOL> Post . create_table ( True ) <EOL> p1 = Post ( ) <EOL> p1 . title = "<STR_LIT>" <EOL> p1 . url = p1 . create_url ( p1 . title ) <EOL> p1 . body = "<STR_LIT>" <EOL> p1 . short_description = "<STR_LIT>" <EOL> p1 . save ( ) <EOL> p2 = Post ( ) <EOL> p2 . title = "<STR_LIT>" <EOL> p2 . url = p2 . create_url ( p2 . title ) <EOL> p2 . body = "<STR_LIT>" <EOL> p2 . short_description = "<STR_LIT>" <EOL> p2 . save ( ) <EOL> p3 = Post ( ) <EOL> p3 . title = "<STR_LIT>" <EOL> p3 . url = p3 . create_url ( p3 . title ) <EOL> p3 . body = "<STR_LIT>" <EOL> p3 . short_description = "<STR_LIT>" <EOL> p3 . save ( ) <EOL> print ( "<STR_LIT>" ) <EOL> Tag . create_table ( True ) <EOL> tag1 = Tag ( ) <EOL> tag1 . tag = "<STR_LIT:test>" <EOL> tag1 . save ( ) <EOL> tag2 = Tag ( ) <EOL> tag2 . tag = "<STR_LIT>" <EOL> tag2 . save ( ) <EOL> tag3 = Tag ( ) <EOL> tag3 . tag = "<STR_LIT>" <EOL> tag3 . save ( ) <EOL> print ( "<STR_LIT>" ) <EOL> Post_To_Tag . create_table ( True ) <EOL> pt1_p1 = Post_To_Tag ( ) <EOL> pt1_p1 . tag = tag1 <EOL> pt1_p1 . post = p1 <EOL> pt1_p1 . save ( ) <EOL> pt2_p1 = Post_To_Tag ( ) <EOL> pt2_p1 . tag = tag2 <EOL> pt2_p1 . post = p1 <EOL> pt2_p1 . save ( ) <EOL> pt3_p3 = Post_To_Tag ( ) <EOL> pt3_p3 . tag = tag3 <EOL> pt3_p3 . post = p3 <EOL> pt3_p3 . save ( ) <EOL> pt4_p2 = Post_To_Tag ( ) <EOL> pt4_p2 . tag = tag1 <EOL> pt4_p2 . post = p2 <EOL> pt4_p2 . save ( ) <EOL> db . close ( ) </s>
