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 http://askbot.org/en/question/10829/customizable-askbot-installation/ (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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
matigro's avatar
1
matigro
asked 11 years ago
Evgeny's avatar
13.2k
Evgeny
updated 11 years ago

Comments

1

Please try the github version, if you have the same issue - I'll have a look. Thanks!

Evgeny's avatar Evgeny (11 years ago)

Thanks for your inmediate response! It's working from github version.

matigro's avatar matigro (11 years ago)

Hi this issue is still there when i use postgres db. Can you help me with this.

umang's avatar umang (11 years ago)
see more comments