First time here? Check out the FAQ!
0

Unable to activate RSS Feeds
 

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 ?

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
tristan's avatar
95
tristan
asked 12 years ago

Comments

see more comments

2 Answers

1

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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
tristan's avatar
95
tristan
answered 12 years ago
link

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's avatar Evgeny (12 years ago)

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

Evgeny's avatar Evgeny (12 years ago)
see more comments
0

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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
answered 12 years ago
link

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's avatar tristan (12 years ago)

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's avatar Evgeny (12 years ago)

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's avatar tristan (12 years ago)

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

tristan's avatar tristan (12 years ago)

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

tristan's avatar tristan (12 years ago)
see more comments