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 » Crash when postig to sphblog

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.

Please login to post a reply.



Powered by Sphene Community Tools