<s> from blog . models import Post <EOL> if '<STR_LIT>' in settings . INSTALLED_APPS : <EOL> from voter . models import create_rating <EOL> def import_post ( user , import_item ) : <EOL> title = import_item . title <EOL> if not title : <EOL> title = "<STR_LIT>" <EOL> kwargs = { <EOL> '<STR_LIT>' : user , <EOL> '<STR_LIT:title>' : title , <EOL> '<STR_LIT>' : import_item . description , <EOL> '<STR_LIT:body>' : import_item . text <EOL> } <EOL> if '<STR_LIT>' in settings . INSTALLED_APPS : <EOL> kwargs [ '<STR_LIT>' ] = create_rating ( ) <EOL> post = Post ( ** kwargs ) <EOL> post . save ( ) <EOL> return '<STR_LIT>' </s>
