Sphene Community Tools

Community

Copyright © 2007-2018 by Herbert Poul

You are not logged in.
Login
Register

Change Language:



AddThis Social Bookmark Button

A Django site.

Powered by Sphene Community Tools
Board » General » Feeds not work...

Hi.
Can't make work rss feeds on blog.
Opening rss link given on the main page returns this traceback:
Environment:

Request Method: GET
Request URL: http://localhost:8000/news/feeds/latestposts/
Django Version: 1.1.1
Python Version: 2.6.4
Installed Applications:
['django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.flatpages',
 'django.contrib.admin',
 'sphene.community',
 'sphene.sphboard',
 'sphene.sphwiki',
 'sphene.sphblog',
 'registration',
 'django_authopenid']
Installed Middleware:
('sphene.community.middleware.ThreadLocals',
 'sphene.community.middleware.GroupMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.middleware.doc.XViewMiddleware',
 'django_authopenid.middleware.OpenIDMiddleware',
 'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware')


Traceback:
File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/base.py" in get_response
  92.                 response = callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python2.6/dist-packages/django/contrib/syndication/views.py" in feed
  19.         feedgen = f(slug, request).get_feed(param)
File "/usr/local/lib/python2.6/dist-packages/django/contrib/syndication/feeds.py" in get_feed
  130.         for item in self.__get_dynamic_attr('items', obj):
File "/usr/local/lib/python2.6/dist-packages/django/contrib/syndication/feeds.py" in __get_dynamic_attr
  58.                 return attr(obj)
File "/media/G/data/www/sphene/sphblog/feeds.py" in items
  41.         threads = get_blog_posts_queryset(group, categories )
File "/media/G/data/www/sphene/sphblog/views.py" in get_blog_posts_queryset
  40.                                    post__category__group__id = group.id,

Exception Type: AttributeError at /news/feeds/latestposts/
Exception Value: 'NoneType' object has no attribute 'id'


Please tell me what I'm doing wrong.

Please login to post a reply.



Powered by Sphene Community Tools