Ask Your Question
0

Unable to activate RSS Feeds

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

tristan gravatar image tristan flag of France
85 2 1 8

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 ?

delete close flag offensive retag edit

2 Answers

Sort by ยป oldest newest most voted
1

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

tristan gravatar image tristan flag of France
85 2 1 8

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.

link publish delete flag offensive edit

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 ( 2012-04-30 08:40:45 -0500 )edit

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

Evgeny ( 2012-05-01 10:14:27 -0500 )edit
0

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

Evgeny gravatar image Evgeny flag of Chile
11009 50 84 182
http://askbot.org/

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.

link publish delete flag offensive edit

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 ( 2012-04-29 13:49:02 -0500 )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 ( 2012-04-29 13:59:51 -0500 )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 ( 2012-04-29 14:34:25 -0500 )edit

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

tristan ( 2012-04-29 14:51:49 -0500 )edit

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

tristan ( 2012-04-29 14:53:52 -0500 )edit

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Reliable Askbot Hosting

Create your Q&A site at askbot.com. Managed Askbot hosting at just $15/mo. Dedicated hosting, support contracts, consulting services.

create your Q&A site
30 days free trial

Question tools

Follow

subscribe to rss feed

Stats

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

Seen: 113 times

Last updated: Apr 30 '12