Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Import RSS and Atom feeds and save in the database.

Project Description


Import RSS and Atom feeds and save in the Django database.


* Django >= 1.4
* Feedparser
* `django.core.context_processors.request` context processor (for the template
tag usage)


Install from pypi::

pip install django-feed-imports

Install from source with pip::

pip install -e https://github/modlinltd/django-feed-imports/archive/

Or install from source:

git clone
cd django_feed_imports
python install

Add it the application to your ``INSTALLED_APPS`` setting::


Run `syncdb` and `migrate`::

python syncdb
python migrate


#. Configure the feeds sources in the Admin.
#. Run the management command::

python refresh_feeds

*The management command should run as a cron job.*
#. Using the template tag::

{% load feed_items %}
{% get_feed_items "news" 5 as items %}
{# Get the last 5 items from the feed "news" in the current language #}
{% for item in items %} {# do stuff ... #} {% endfor %}

The `get_feed_items` returns the last `n` items from the provided feed in
the language as set in the request, with a fallback to the default language.

If settings.DEFAULT_LANGUAGE is not defined, English will be assumed.
<<<<<<< HEAD

#. To use `feed_item.get_absolute_url()` you must the define a url with the
name `feed_item` in you ``. For Example::




* Clean up README and prepare for sharing


* add Python 3 support
>>>>>>> parent of 68cd327... updated readme

Release History

This version
History Node


Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers