I am trying to generate a feed. So I added the following lines to urls.py feeds = {'latest': main_feed} urlpatterns += patterns('', (r'^rss/(?P<url>.*)/$', 'django.contrib.syndication.views.feed', {'feed_dict': feeds}) )
The class main_feed is, def main_feed (Feed): blog = Blog.objects.all()[0] title = blog.title link = "/rss/latest/" description = blog.description def items (self): entries = BlogEntry.entry.all()[:blog.recents * 2] return entries Now I should be getting the feed at /rss/latest/ , but I am getting an error like TypeError at /rss/latest/ main_feed() takes exactly 1 argument (2 given) Full error stack, Traceback: File "C:\Python24\lib\site-packages\django\core\handlers\base.py" in get_response 82. response = callback(request, *callback_args, **callback_kwargs) File "C:\Python24\lib\site-packages\django\contrib\syndication \views.py" in feed 19. feedgen = f(slug, request).get_feed(param) Exception Type: TypeError at /rss/latest/ Exception Value: main_feed() takes exactly 1 argument (2 given) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---