Error in migration: askbot:0127_save_category_tree_as_json
 

Doing an initial install from the github devel repo as a new project, I'm trying to run the initial migrations. It gets to 0127 and dies

Database is Postgres 9.2.

$ python manage.py migrate askbot

And here's what I'm getting:

 ...
 ...
 > askbot:0120_auto__add_field_groupprofile_moderate_email__add_field_postrevision_em
 > askbot:0121_auto__add_field_groupprofile_is_open__add_field_groupprofile_preapprov
 > askbot:0122_auth_user__add_subscribed_tag_field
 > askbot:0123_setup_postgres_user_search
 > askbot:0124_auto__add_field_post_is_private__add_field_replyaddress_reply_action
 > askbot:0125_add_show_tags_field_to_user
 > askbot:0126_add_field__auth_user__is_fake
 > askbot:0127_save_category_tree_as_json
Error in migration: askbot:0127_save_category_tree_as_json
DoesNotExist: Setting matching query does not exist. Lookup parameters were {'key': 'CATEGORY_TREE'}

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)
kporangehat's avatar
1
kporangehat
asked 11 years ago

Comments

Please try "python manage.py migrate askbot 0127 --fake" then repeat your command. I will look into this issue tomorrow.

Evgeny's avatar Evgeny (11 years ago)

Thanks! That worked and the rest of the migrations completed without complaint.

kporangehat's avatar kporangehat (11 years ago)

FYI, this came up on django 1.5.1. I've since rolled back to 1.4.5 and did not encounter this issue.

kporangehat's avatar kporangehat (11 years ago)

I had similar problem and fixed it with replacing CATEGORY_TREE with its valuse from settings like: CATEGORY_TREE = '[["dummy",[]]]'

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