Skip to main content

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

http://stackoverflow.com/questions/870979/redirect-django-feed-to-feedburner

Installation

Rewrite your urls.py 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 http://feeds.feedburner.com.

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

FEEDBURNER_URLS = {
    '/feeds/latest/': 'http://feeds.feedburner.com/example-latest',
}

or a bit shorter:

FEEDBURNER_URLS = {
    '/feeds/latest/': '/example-latest',
}

You can change the prefixed url with the FEEDBURNER_URL_PREFIX setting.

Release files for django-feedburner 0.9.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-feedburner 0.9.0
File Size Uploaded
django-feedburner-0.9.0.tar.gz 3.3 kB Details

Release files / django-feedburner-0.9.0.tar.gz

Download URL django-feedburner-0.9.0.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
103fe2a39b82f3e2caa97b1b81fed3fdca02af6f0fe6350ed23d771f094d1152
BLAKE2b-256 checksum
How to use checksums
87e5fc5d9087195901791ab3f55015c3dbd0c8c578dfbcd3ffae00639bfbb589
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.9.0 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page