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 » after svn update, I got this error

=========================================================================
Environment:

Request Method: POST
Request URL: http://www.abc.com/ggum/board/post/1/
Django Version: 0.97-pre-SVN-7243
Python Version: 2.4.4
Installed Applications:
['django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.admin',
'home',
'sphene.community',
'sphene.sphboard',
'sphene.sphblog',
'sphene.sphwiki']
Installed Middleware:
('sphene.community.middleware.ThreadLocals',
'sphene.community.middleware.GroupMiddleware',
'sphene.community.middleware.LastModified',
'sphene.community.middleware.PermissionDeniedMiddleware',
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.middleware.doc.XViewMiddleware')


Traceback:
File "/data/lib/django_trunk/django/core/handlers/base.py" in get_response
82. response = callback(request, *callback_args, **callback_kwargs)
File "/data/lib/communitytools/sphenecoll/sphene/sphboard/views.py" in post
313. newpost.save()
File "/data/lib/communitytools/sphenecoll/sphene/sphboard/models.py" in save
816. ret = super(Post, self).save()
File "/data/lib/django_trunk/django/db/models/base.py" in save
276. instance=self, created=(not record_exists), raw=raw)
File "/data/lib/django_trunk/django/dispatch/dispatcher.py" in send
358. sender=sender,
File "/data/lib/django_trunk/django/dispatch/robustapply.py" in robustApply
47. return receiver(*arguments, **named)
File "/data/lib/communitytools/sphenecoll/sphene/sphboard/models.py" in update_post_count
1293. UserPostCount.objects.update_post_count( instance.author, instance.category.group )
File "/data/lib/communitytools/sphenecoll/sphene/sphboard/models.py" in update_post_count
1269. upc = self.get(user = user, group = group)
File "/data/lib/django_trunk/django/db/models/manager.py" in get
69. return self.get_query_set().get(*args, **kwargs)
File "/data/lib/django_trunk/django/db/models/query.py" in get
261. obj_list = list(clone)
File "/data/lib/django_trunk/django/db/models/query.py" in __iter__
114. return iter(self._get_data())
File "/data/lib/django_trunk/django/db/models/query.py" in _get_data
483. self._result_cache = list(self.iterator())
File "/data/lib/django_trunk/django/db/models/query.py" in iterator
189. cursor.execute("SELECT " + (self._distinct and "DISTINCT " or "") + ",".join(select) + sql, params)
File "/data/lib/django_trunk/django/db/backends/util.py" in execute
18. return self.cursor.execute(sql, params)
File "/data/lib/django_trunk/django/db/backends/postgresql/base.py" in execute
47. return self.cursor.execute(smart_str(sql, self.charset), self.format_params(params))

Exception Type: ProgrammingError at /ggum/board/post/1/
Exception Value: ERROR: relation "sphboard_userpostcount" does not exist

SELECT "sphboard_userpostcount"."id","sphboard_userpostcount"."user_id","sphboard_userpostcount"."group_id","sphboard_userpostcount"."post_count" FROM "sphboard_userpostcount" WHERE ("sphboard_userpostcount"."group_id" = 1 AND "sphboard_userpostcount"."user_id" = 1)
========================================================================

I can see the simillar error also in the view page



--- Last Edited by jacob at 2008-03-19 04:00:51 ---
have you tried running syncdb ?
Hey, we have Signatures !!! Great, isn't it ? ;)
oops, I didn't know that you have chanaged the model.

Now It works perpectly. Thanks as allways

Please login to post a reply.



Powered by Sphene Community Tools