djangosnippets.org: Latest snippets posted by ltvolkshttps://djangosnippets.org/users/ltvolks/2009-07-23T15:49:54.591972-05:00ltvolksMedia RSS generation for Photologue
2009-07-23T15:49:54.591972-05:00ltvolkshttps://djangosnippets.org/snippets/1648/<p>Provides a basic implementation of Yahoo's <a href="http://video.search.yahoo.com/mrss">MediaRSS</a> format for <a href="http://code.google.com/p/django-photologue/">Photologue</a> galleries</p>
<p>Simplest usage:
I have feedgenerator.py in a utils directory. Import photofeeds and hook up the feed url in your URLConf:</p>
<pre><code>from utils.feedgenerator import photofeeds
urlpatterns += patterns('',
url(r'^feeds/(?P<url>.*)/$', 'django.contrib.syndication.views.feed', {'feed_dict': photofeeds}),)
</code></pre>
<p>Without customization, this will generate a feed for …</p>
Freely redistributable