First time here? Check out the FAQ!

Revision history  [back]

Cannot start a new project with askbot

Hello, I have a problem when I want to synced a new installation of askbot. I started a new project, following most of the this steps but with this requirements: Django==1.3.1 and askbot==0.7.48.

This is what migration do:

$ python manage.py migrate askbot
WARNING!!! You are using a 'locmem' (local memory) caching backend,(...cut by me...)

relation "askbot_badgedata" does not exist
LINE 1: ..."."slug", "askbot_badgedata"."awarded_count" FROM "askbot_ba...
                                                             ^
Running migrations for askbot:
 - Migrating forwards to 0161_add_field__user_languages.
 > askbot:0013_add_response_count__to_user
FATAL ERROR - The following SQL query failed: ALTER TABLE "auth_user" ADD COLUMN "response_count" integer NOT NULL DEFAULT 0;
The error was: column "response_count" of relation "auth_user" already exists

probably already have column User.response_count
Error in migration: askbot:0013_add_response_count__to_user
Traceback (most recent call last):
  File "manage.py", line 11, in <module>
    execute_manager(settings)
  File "/home/mgieco/.virtualenvs/askbot/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 438, in execute_manager

(... cut the stacktrace by me...)

  File "/home/mgieco/.virtualenvs/askbot/local/lib/python2.7/site-packages/django/db/backends/postgresql_psycopg2/base.py", line 44, in execute
    return self.cursor.execute(query, args)
django.db.utils.DatabaseError: current transaction is aborted, commands ignored until end of transaction block

I can't figure out what the problem is. Any help is welcome.

Cannot start a new project with askbot

Hello, I have a problem when I want to synced a new installation of askbot. I started a new project, following most of the this steps but with this requirements: Django==1.3.1 and askbot==0.7.48.

This is what migration do:

$ python manage.py migrate askbot
WARNING!!! You are using a 'locmem' (local memory) caching backend,(...cut by me...)

relation "askbot_badgedata" does not exist
LINE 1: ..."."slug", "askbot_badgedata"."awarded_count" FROM "askbot_ba...
                                                             ^
Running migrations for askbot:
 - Migrating forwards to 0161_add_field__user_languages.
 > askbot:0013_add_response_count__to_user
FATAL ERROR - The following SQL query failed: ALTER TABLE "auth_user" ADD COLUMN "response_count" integer NOT NULL DEFAULT 0;
The error was: column "response_count" of relation "auth_user" already exists

probably already have column User.response_count
Error in migration: askbot:0013_add_response_count__to_user
Traceback (most recent call last):
  File "manage.py", line 11, in <module>
    execute_manager(settings)
  File "/home/mgieco/.virtualenvs/askbot/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 438, in execute_manager

(... cut the stacktrace by me...)

  File "/home/mgieco/.virtualenvs/askbot/local/lib/python2.7/site-packages/django/db/backends/postgresql_psycopg2/base.py", line 44, in execute
    return self.cursor.execute(query, args)
django.db.utils.DatabaseError: current transaction is aborted, commands ignored until end of transaction block

I can't figure out what the problem is. Any help is welcome.