Ask Your Question
0

Unable to activate RSS Feeds

asked 2012-04-29 13:18:29 -0600

tristan gravatar image

I missed probably one step to activate the RSS Feeds and no doc about this part of the configuration.

Hi,

In urls.py I add:
1) According to feed.py :
from askbot.feed import RssLastestQuestionsFeed, RssIndividualQuestionFeed

2) The feeds dictionnary :
feeds = {
'rss': RssLastestQuestionsFeed,
'question':RssIndividualQuestionFeed
}

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

After restarting apache, the RSS link is always /feeds/rss/? and the feeds are inactives.

Any idea ?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2012-04-30 08:36:14 -0600

tristan gravatar image

Ok, finally no problem : the site is under construction and protected by htaccess (the feed is unreachable).
To detect the error I used : http://feedvalidator.org which indicates clearly the nature of the error.

edit flag offensive delete link more

Comments

Thanks for the pointer, I will look at this by tomorrow. It might be the case that session-less clients have issues with some askbot urls.

Evgeny gravatar imageEvgeny ( 2012-04-30 08:40:45 -0600 )edit

Ok, I misunderstood originally, it was just a site setup issue.

Evgeny gravatar imageEvgeny ( 2012-05-01 10:14:27 -0600 )edit
0

answered 2012-04-29 13:33:33 -0600

Evgeny gravatar image

Tristan, the feeds are in the askbot/urls.py, so if you have 'askbot.urls' included in your urls.py you should have the feeds automatically.

If feed urls don't work that means you've changed something in your urls module. The defalut urls.py can be found in askbot/setup_templates.

edit flag offensive delete link more

Comments

The only changes I made are those described in the question... I go back to the original file but the feeds are not activated...

tristan gravatar imagetristan ( 2012-04-29 13:49:02 -0600 )edit

I've just tested latest version - the feed urls work fine. On the hosted site we have the latest version too and the feeds work. Maybe you are missing migrations, or your INSTALLED_APPS is missing the feeds application. The sample settings file is also available in the askbot/setup_templates directory.

Evgeny gravatar imageEvgeny ( 2012-04-29 13:59:51 -0600 )edit

I followed the doc for the deployment and i made the <code>manage.py migrate askbot</code> and <code>manage.py migrate django_authopenid</code>. What is the name of teh app for INSTALLED_APPS? I see nothing named *feed and my INSTALLED_APPS has the same value as the original...

tristan gravatar imagetristan ( 2012-04-29 14:34:25 -0600 )edit

Same problem with a local test from scratch... I use the git version askbot-devel.

tristan gravatar imagetristan ( 2012-04-29 14:51:49 -0600 )edit

I try to migrate another time but : <code>Nothing to migrate</code>

tristan gravatar imagetristan ( 2012-04-29 14:53:52 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2012-04-29 13:18:29 -0600

Seen: 593 times

Last updated: Apr 30 '12