An easy way to show the contents of a blog in your Django app.
Project description
Django-BlogConnector
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.
Installation and Setup
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file django-blogconnector-1.0.0.tar.gz
.
File metadata
- Download URL: django-blogconnector-1.0.0.tar.gz
- Upload date:
- Size: 30.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.0 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 776bac0ea3ecee599f4d5756d35debe26244ddfa1dcd5d9c15d1626a13919908 |
|
MD5 | b0fa2da16508d3f103335b669cf5aadd |
|
BLAKE2b-256 | 52549f39f68e912ee93345b9b10409442340e7b401fb0a556ecfe70c0780ead3 |
File details
Details for the file django_blogconnector-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: django_blogconnector-1.0.0-py3-none-any.whl
- Upload date:
- Size: 40.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.0 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 684cfd81025386d15e20448636b4216d9edc4035fb920961380414f6e9efb562 |
|
MD5 | 05904928e0bd74784657cfb3eebcd961 |
|
BLAKE2b-256 | 8f156e2f2207c9a346c042c270f6f2c5fa60a78d044cb9bec4ab5f41e10948db |