First time here? Check out the FAQ!

Askbot stopped working after newest update

I have the update problem again. After update nothing works any more. When I visit my site I get the 500 internal error. I got this email to my Admin account from my askbot site:

Traceback (most recent call last):


NoReverseMatch: Reverse for 'mysitedjango.get_editor' with arguments '()' and keyword arguments '{}' not found.


How to make it working now?

The commands I've used to update:

git fetch origin master:master-updated
git checkout master
git merge master-updated

I use the ru locale and no customization, except some css and javascript I put in the build in fields of admin panel.


When I ran python migrate

I get following message:

*                      *
*   Askbot self-test   *
*                      *
Error: No module named bs4
Please run: >pip install beautifulsoup4
To install all the dependencies at once, type:
pip install -r askbot_requirements.txt
Type ^C to quit.
If necessary, type ^C (Ctrl-C) to stop the program.
Toms's avatar
asked 2012-09-16 14:06:24 -0500
Evgeny's avatar
updated 2012-09-16 15:10:41 -0500
edit flag offensive 0 remove flag close merge delete


Could you give some more details? What have you done to upgrade? Are you using a staging environment to test the update before publishing it? Are you using Askbot as is or you have customized the code?

Evgeny's avatar Evgeny (2012-09-16 14:20:02 -0500) edit

Have you done python migrate ? It's not in the list of your commands... Also you would need python collectstatic.

Evgeny's avatar Evgeny (2012-09-16 14:34:58 -0500) edit

@Evegeny I've updated the question.

Toms's avatar Toms (2012-09-16 15:08:49 -0500) edit

It's clear now that you have import errors, masked by django. I've truncated your traceback to make the question more understandable and hopefully more useful. The actual traceback is not so relevant in this case.

Evgeny's avatar Evgeny (2012-09-16 15:12:20 -0500) edit
add a comment see more comments

1 Answer


We have a startup tester that runs before any management command.

For example - try python migrate --list - to see if there are any pending database migrations.

If there are issues with the or if any required modules are missing - there will be some hints. Try that.

There may be unpredictable error messages in the site output if some dependencies are not satisfied or if file is not up to date.

Evgeny's avatar
answered 2012-09-16 15:08:29 -0500
edit flag offensive 0 remove flag delete link


I've installed some missing modules and edited Now I'm running python migrate and I'm forced to decide:

*The following content types are stale and need to be deleted:

askbot | groupprofile

Any objects related to these content types by a foreign key will also be deleted. Are you sure you want to delete these content types? If you're unsure, answer 'no'. * What should I do? I have some questions on my site, I don't want to delete them

Toms's avatar Toms (2012-09-16 15:30:01 -0500) edit

Answer "yes" to this one, this won't delete any useful content from your site, only "content type" records that are not in use any more. Those are used only internally, they are not user-contributed data.

Evgeny's avatar Evgeny (2012-09-16 15:32:01 -0500) edit

thank you Evgeny! It works now. Could you provide some tutorial how to check the changes in some virtual enviroment before we do it on a working site?

Toms's avatar Toms (2012-09-16 16:33:11 -0500) edit
add a comment see more comments