Skip to main content

Django app to build a planet, RSS/Atom feeds aggregator.

Project description

This is a generic application for Django projects aiming to provide a planet feed aggregator app.

Django-planet is heavily based on Feedjack’s models by Gustavo Picon and my django app that extends it: feedjack-extension. Changes and addings to models were inspired by Mark Pilgrim’s Feedparser.

Screenshots:

The following screenshots are just for demonstration purposes:

https://raw.github.com/matagus/django-planet/master/screenshots/latest-posts.png https://raw.github.com/matagus/django-planet/master/screenshots/post-view.png https://raw.github.com/matagus/django-planet/master/screenshots/tag-view.png

INSTALLATION

In order to get django-planet working you must:

Create a local_settings.py file:

DEBUG = False
TEMPLATE_DEBUG = DEBUG

LANGUAGE_COOKIE_NAME = "planetlng"
SESSION_COOKIE_NAME = "planetid"

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
        'NAME': 'planet',                      # Or path to database file if using sqlite3.
        'USER': '<myuser>',                      # Not used with sqlite3.
        'PASSWORD': '<mypass>',                  # Not used with sqlite3.
        'HOST': '',                      # Set to empty string for localhost. Not used with sqlite3.
        'PORT': '',                      # Set to empty string for default. Not used with sqlite3.
    }
}

TEMPLATE_CONTEXT_PROCESSORS = (
    ...
    'planet.context_processors.context',
)

TIME_ZONE = 'America/Chicago'

PLANET = {
    "USER_AGENT": "django-planet/0.1",
}

Then create the database structure:

./manage.py syncdb
./manage.py migrate planet

Add some feeds:

./manage.py planet_add_feed http://simonwillison.net/atom/tagged/django/
./manage.py planet_add_feed http://jannisleidel.com/cat/django/feed/atom/
./manage.py planet_add_feed http://andrewwilkinson.wordpress.com/tag/django/feed/
./manage.py planet_add_feed http://djangodose.com/everything/feed/
./manage.py planet_add_feed http://seeknuance.com/tag/django/feed/atom
./manage.py planet_add_feed http://www.willmcgugan.com/blog/tech/feeds/tag/django/

And surely you’ll want to add a cron entry to periodically run:

30 * * * * python manage.py planet_update_all_feeds

This attempts to pull for new posts every 30 minutes.

And finally run:

./manage.py runserver

Browse http://localhost:8000/ and enjoy it!

Demo Project

There’s a simple demo project live at django-planet.herokuapp.com

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-planet-0.4.10.tar.gz (29.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page