A very simple app that pulls in Posts, categories and Authors from a Blog's RSS/Atom feed.
Only tested with a WordPress blog so far. Adding others should be possible.
You can install it easily from pypi by running
pip install django-blogconnector
After installing the package, add django_blogconnector
in in your INSTALLED_APPS
settings
INSTALLED_APPS = (
...
'django_blogconnector',
)
After this, you can either include the sample urls in your urls.py.
urlpatterns = [
...
path('blog/', include('django_blogconnector.urls')),
...
]
or create your own views for blog posts.
There are some template tags to simplify template creation:
{% posts %} - Render the list of posts with the template at blog_connector/post.html
{% posts <category-slug> %} - Same as posts, but for a single category.
{% categories %} - Renders the category list with the blog_connector/category.html and blog_connector/category_link.html templates.
{% ...|paragraphs:n }% - Renders the first *n* paragraphs of the variable passed into it.
Everything has admins, so you can add blogs, edit posts, link blog users to your own users, rename categories, etc.