Content block displaying RSS feed for Wagtail CMS
Project description
Wagtail RSS feed
Wagtail RSS feed is a Django app that provides custom content block that can be used with any Wagtail page model.
This way you can load any RSS feed and display it on a any Wagtail page.
Quick start
-
Install "wagtail_rss_feed_block" using pip
$ pip install wagtail-rss-feed-block
-
Add "wagtail_rss_feed_block" to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [ ..., "wagtail_rss_feed_block", ]
-
Use RSSFeedBlock in your Wagtail Page model for example like this:
from wagtail.models import Page from wagtail.fields import StreamField from wagtail_rss_feed_block.blocks import RSSFeedBlock class BlogPage(Page): body = StreamField([ ... ('rss_feed', RSSFeedBlock()), ... ]) content_panels = [ FieldPanel('body'), ]
-
Make and apply database migrations with new changes:
$ python manage.py makemigrations $ python manage.py migrate
Development
-
Clone this repo:
$ git clone git@github.com:LESPROJEKT/wagtail-rss-feed-block.git
-
Use pip to install this package from newly cloned repo folder to your local Django project ( -e argument stands for --editable and it's handy for local development. It will reload your Django project every time you make changes to wagtail-rss-feed-block.):
$ pip install -e <path to repo folder>
-
Now you can continue from step no. 2 of Quick start guide above.
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
Hashes for wagtail-rss-feed-block-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4bb72db16b63261d7a9c42c111cdd3dec0af50247b81e3dce53f183096d1f065 |
|
MD5 | bf729ba23ddc3fc4d4ffbafae1ad5f2f |
|
BLAKE2b-256 | 9ea4008fcc42e113eae832d5c106832b227fd06acbe1d8370b0cc16c30c9be92 |
Hashes for wagtail_rss_feed_block-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96ebb56907d16b17c0a9f6b235b66364e170a3e34584d80bbf4c762c136cb7ea |
|
MD5 | 226e3d0fc95f2cb9a0b89046e10a1ad5 |
|
BLAKE2b-256 | bf5493b37c0a8a5ef9e163693c65fb194270f9645a4bdc2377f1c0784378cbd1 |