Revision history [back]
NameError: name 'Command' is not defined when run fix_question_tags
Hello
python manage.py fix_question_tags appears to be broken in the latest master branch. Traceback:
$ python manage.py fix_question_tags
Traceback (most recent call last):
File "manage.py", line 11, in <module>
execute_manager(settings)
File "/usr/local/lib/python2.7/dist-packages/Django-1.5-py2.7.egg/django/core/management/__init__.py", line 469, in execute_manager
utility.execute()
File "/usr/local/lib/python2.7/dist-packages/Django-1.5-py2.7.egg/django/core/management/__init__.py", line 392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python2.7/dist-packages/Django-1.5-py2.7.egg/django/core/management/__init__.py", line 272, in fetch_command
klass = load_command_class(app_name, subcommand)
File "/usr/local/lib/python2.7/dist-packages/Django-1.5-py2.7.egg/django/core/management/__init__.py", line 77, in load_command_class
module = import_module('%s.management.commands.%s' % (app_name, name))
File "/usr/local/lib/python2.7/dist-packages/Django-1.5-py2.7.egg/django/utils/importlib.py", line 35, in import_module
__import__(name)
File "/<REMOVED_LOCAL_PATH>/askbot/askbot/management/commands/fix_question_tags.py", line 30, in <module>
class Command(Command):
NameError: name 'Command' is not defined
Or am I missing something?