Sphene Community Tools

Community

Copyright © 2007-2009 by Herbert Poul
You are not logged in.
Login
Register

Change Language:



AddThis Social Bookmark Button

A Django site.

Powered by Sphene Community Tools

Profile for BrainFucker



Name BrainFucker
Email Address Reveal this emailaddress
Posts3
  • Crash when postig to sphblog
    Board » General
    I always get this traceback when posting to sphblog:
    Environment:
    
    Request Method: POST
    Request URL: http://localhost:3000/forum/post/4/
    Django Version: 1.1.1
    Python Version: 2.6.5
    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 "/media/G/data/www/test/sphene_svn/sphene/sphboard/views.py" in post
      352.             newpost.save(additional_data = data)
    File "/media/G/data/www/test/sphene_svn/sphene/sphboard/models.py" in save
      960.             self.category.get_category_type().save_post(self, additional_data)
    File "/media/G/data/www/test/sphene_svn/sphene/sphblog/categorytypes.py" in save_post
      78.         tag_set_labels( newpost, data['tags'] )
    File "/media/G/data/www/test/sphene_svn/sphene/community/models.py" in tag_set_labels
      431.         t.save()
    File "/usr/local/lib/python2.6/dist-packages/django/db/models/base.py" in save
      410.         self.save_base(force_insert=force_insert, force_update=force_update)
    File "/usr/local/lib/python2.6/dist-packages/django/db/models/base.py" in save_base
      495.                     result = manager._insert(values, return_id=update_pk)
    File "/usr/local/lib/python2.6/dist-packages/django/db/models/manager.py" in _insert
      177.         return insert_query(self.model, values, **kwargs)
    File "/usr/local/lib/python2.6/dist-packages/django/db/models/query.py" in insert_query
      1087.     return query.execute_sql(return_id)
    File "/usr/local/lib/python2.6/dist-packages/django/db/models/sql/subqueries.py" in execute_sql
      320.         cursor = super(InsertQuery, self).execute_sql(None)
    File "/usr/local/lib/python2.6/dist-packages/django/db/models/sql/query.py" in execute_sql
      2369.         cursor.execute(sql, params)
    File "/usr/local/lib/python2.6/dist-packages/django/db/backends/util.py" in execute
      19.             return self.cursor.execute(sql, params)
    File "/usr/local/lib/python2.6/dist-packages/django/db/backends/sqlite3/base.py" in execute
      193.         return Database.Cursor.execute(self, query, params)
    
    Exception Type: IntegrityError at /forum/post/4/
    Exception Value: columns tag_label_id, content_type_id, object_id are not unique

    but message appears in blog if I reload blog page.
  • Feeds not work...
    Board » General
    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.
  • Users registering modes
    Board » General » Feature Discussions
    Hi.
    I'd like to have possibility to disable sending activation links to e-mails (or even any email from forum, e.g. notifications) and protect accounts creations by bots with captcha.

    Sorry for my bad English.
    Regards.


Powered by Sphene Community Tools