Skip to main content

Handles redirection of django feeds to feedburner urls.

Project description

This is a app provides a view that handles redirection of feeds to the feedburner url. It is based on a stack overflow question:


Rewrite your file that uses django’s builtin feed view and replace it with django_feedburner.views.redirect_feed.

See this example urlpatterns:

urlpatterns = patterns('',
    (r'^feeds/(?P<url>.*)/$', 'django.contrib.syndication.views.feed', {'feed_dict': feeds}),

To use the redirections write:

urlpatterns = patterns('',
    (r'^feeds/(?P<url>.*)/$', 'django_feedburner.views.redirected_feed', {'feed_dict': feeds}),

Know you must specify which feeds should get redirected. You can specify this with the FEEDBURNER_URLS setting. This must be a dict which holds the complete urls as keys that should get redirect. The values must be either an absolute url to the feedburner url or a path that starts with a slash. This values will be prefixed with

To redirect the latest feed from the example above to feedburner’s example-latest feed we must write:

    '/feeds/latest/': '',

or a bit shorter:

    '/feeds/latest/': '/example-latest',

You can change the prefixed url with the FEEDBURNER_URL_PREFIX setting.

Project details

Download files

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

Files for django-feedburner, version 0.9.0
Filename, size File type Python version Upload date Hashes
Filename, size django-feedburner-0.9.0.tar.gz (3.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page