This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def import_wp(language): | |
from django.template.defaultfilters import truncatewords_html | |
from cms.api import add_plugin | |
from wordpress.models import Post as WPost | |
from djangocms_blog.models import Post, BlogCategory | |
from django.contrib.auth.models import User | |
for post in WPost.objects.published(): | |
print post.title |