A simple solution for integrating Django and WordPress RSS

August 26, 2012

Today I am releasing django-wordpress-rss – a Django template tag for integrating Wordpress articles. It’s available today via PyPI.

This code was developed as an integral piece of the Seattle Times Election Guide. I made it simple to dynamically pull in content based on a WordPress category.

How simple?

1 pip install django-wordpress-rss
1 WORDPRESS_RSS_BASE_URL = 'http://www.kevinschaul.com'
1 {% load wordpress_rss %}
2 {% wordpress_rss rss_category 10 as rss_results %}
3 <ul>{% for item in rss_results %}
4     <li><a href="{{ item.href }}">{{ item.title }}</a></li>
5 </ul>
6 {% endfor %}

Have ideas for improvement? Open up an issue on GitHub.