Opened 12 years ago

Closed 12 years ago

#5569 closed (duplicate)

BUG: "python syncdb" while running tutorial crashes

Reported by: eshapira@… Owned by: nobody
Component: Core (Management commands) Version: master
Severity: Keywords: syncdb
Cc: Triage Stage: Ready for checkin
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


Python Version: 2.5, OS: Windows XP
I was trying out the tutorial with the SVN version.
While running "python syncdb" I get a traceback in call_command() in


D:\projects\django_tutorial\src\mysite>python syncdb
Traceback (most recent call last):

File "", line 11, in <module>


File "D:\Python25\Lib\site-packages\django\core\management\", line 264, in execute_mana



File "D:\Python25\Lib\site-packages\django\core\management\", line 215, in execute


File "D:\Python25\lib\site-packages\django\core\management\", line 70, in run_from_argv

self.execute(*args, options.dict)

File "D:\Python25\lib\site-packages\django\core\management\", line 84, in execute

output = self.handle(*args, options)

File "D:\Python25\lib\site-packages\django\core\management\", line 168, in handle

return self.handle_noargs(options)

File "d:\python25\lib\site-packages\django\core\management\commands\", line 137, in handl


call_command('loaddata', subcommand='initial_data', verbosity=verbosity)

File "D:\Python25\Lib\site-packages\django\core\management\", line 120, in call_command

klass = load_command_class(app_name, subcommand)

NameError: global name 'subcommand' is not defined

Change History (3)

comment:1 Changed 12 years ago by Michael Radziej

Component: Core
Triage Stage: UnreviewedAccepted

Yeah, changeset [6402] contains a typo.

comment:2 Changed 12 years ago by Michael Radziej

Triage Stage: AcceptedReady for checkin

Please accept this as a patch:

django\core\management\__init.py__, line 120: s/subcommand/name/

(I currently don't have access to a clean django code base and can't create a patch)

comment:3 Changed 12 years ago by anonymous

Resolution: duplicate
Status: newclosed

dupe of #5566

Note: See TracTickets for help on using tickets.
Back to Top