Ask Your Question
1

Does manage.py fix_question_tags work?

asked 2012-05-08 03:41:09 -0500

jimt gravatar image jimt flag of New Zealand
53 1 7
http://WikiEducator.org/U...

updated 2012-05-08 09:19:44 -0500

Evgeny gravatar image Evgeny flag of Chile
11074 50 84 182
http://askbot.org/

After unsetting the force lower case tags setting, running python manage.py fix_question_tags appears to change many of my existing tags to lower case, but then results in a traceback:

File "manage.py", line 11, in <module>
  execute_manager(settings)
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/core/management/__init__.py", line 438, in execute_manager
  utility.execute()
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/core/management/__init__.py", line 379, in execute
  self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/core/management/base.py", line 191, in run_from_argv
  self.execute(*args, **options.__dict__)
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/core/management/base.py", line 220, in execute
  output = self.handle(*args, **options)
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/core/management/base.py", line 351, in handle
  return self.handle_noargs(**options)
File "/home/askbotdir/askbot/management/commands/fix_question_tags.py", line 15, in handle_noargs
  self.run_command()
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/db/transaction.py", line 217, in inner
  res = func(*args, **kwargs)
File "/home/askbotdir/askbot/management/commands/fix_question_tags.py", line 42, in run_command
  questions = models.Question.objects.all()
AttributeError: 'module' object has no attribute 'Question'
delete close flag offensive retag edit

Comments

It is a bug, thanks. Model Question was removed a while ago.

Evgeny ( 2012-05-08 09:20:15 -0500 )edit

Be the first one to answer this question!

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Reliable Askbot Hosting

Create your Q&A site at askbot.com. Managed Askbot hosting at just $15/mo. Dedicated hosting, support contracts, consulting services.

create your Q&A site
30 days free trial

Question tools

Follow
1 follower

subscribe to rss feed

Stats

Asked: 2012-05-08 03:41:09 -0500

Seen: 42 times

Last updated: May 08 '12