Kenny Meyer (knny.m...@gmail.com) wrote: > El 22/01/10 07:31, Kenny Meyer escribió: > > I'm trying to generate some feeds for my blog with Django's high-level > > Syndication Framework. > > My problem is, when browsing to the URL defined in the ``link`` > > attribute of the ``syndication.Feed`` model, there's no Feed > > generated/displayed. > > > The link attribute is just what will show in the feed markup as.. well.. > the feed's link, doesn't > necessarily have to be the subscription url. You usually want to set it > to the url for that content in your site. Look at Django's community > aggregator feed: > > <?xml version="1.0" encoding="utf-8"?> > <rss version="2.0"> > <channel> > <title>The Django community aggregator</title> > <link>http://www.djangoproject.com/community/</link> > ... > > While the link attribute is http://www.djangoproject.com/community/ , > the feed's url is actually http://www.djangoproject.com/rss/community/
I brought something out of order... Your example is perfectly logic and understanding to me. I had a false concept of ``link``. > > ------- > > PROBLEM > > ------- > > > > Now as mention earlier, when browsing to http://localhost:8000/blog/ > > there's no option for subscribing to the feed. > > I've compared a lot of configurations and I cannot see the problem. > > > > Well, isn't that something you'd define yourself? Or what do you mean by > "option for subscribing to the feed"? By that I mean, Django creating the link to the Syndication feed automatically in the '<head>' section of my template, which is wrong. I now understand that. So I've created a reference to the feed in my template and it's working. :) Now I only have to check how to reverse lookup the feed to not write static code. Thanks for your help and time, Gonzalo. Hablamos, Kenny
signature.asc
Description: Digital signature