First time here? Check out the FAQ!

Revision history  [back]

ValueError: The database backend does not accept 0 as a value for AutoField.

I am seeing this error when I run "python manage.py migrate askbot" My database is MySQL and its version is "Server version: 5.5.34-0ubuntu0.12.04.1"

I set up mysql using :

  1. sudo apt-get install build-essential
  2. python-dev libmysqlclient-dev sudo
  3. pip install mysql-python
  4. sudo apt-get install python-mysqldb
  5. sudo apt-get install mysql-server

I tried:

  1. python manage.py migrate askbot 0054 #migrate normally up to the 54th migration
  2. python manage.py migrate askbot 0055 --fake #skip this migration
  3. python manage.py migrate askbot #finish migrating askbot
  4. python manage.py migrate #finish migrating anything else (if necessary)

But I got error at #89, #92 and #98

ValueError: The database backend does not accept 0 as a value for AutoField.

I am seeing this error when I run "python manage.py migrate askbot" My database is MySQL and its version is "Server version: 5.5.34-0ubuntu0.12.04.1"

I set up mysql using :

  1. sudo apt-get install build-essential


  2. python-dev libmysqlclient-dev sudo

  3. pip install mysql-python
  4. mysql-python sudo apt-get install python-mysqldb
  5. sudo apt-get install mysql-server

I tried:

  1. python manage.py migrate askbot 0054 #migrate normally up to the 54th migration
  2. migration python manage.py migrate askbot 0055 --fake #skip this migration
  3. migration python manage.py migrate askbot #finish migrating askbot
  4. askbot python manage.py migrate #finish migrating anything else (if necessary)

But I got error at #89, #92 and #98

ValueError: The database backend does not accept 0 as a value for AutoField.

I am seeing this error when I run "python manage.py migrate askbot" My database is MySQL and its version is "Server version: 5.5.34-0ubuntu0.12.04.1"

I set up mysql using :

sudo apt-get install build-essential
python-dev libmysqlclient-dev sudo
pip install mysql-python sudo apt-get install python-mysqldb sudo apt-get install mysql-server

I tried: python manage.py migrate askbot 0054 #migrate normally up to the 54th migration python manage.py migrate askbot 0055 --fake #skip this migration python manage.py migrate askbot #finish migrating askbot python manage.py migrate #finish migrating anything else (if necessary)

But I got error at #89, #92 and #98