﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
18842	"Calling ""manage.py reset <appname>"" causes infinite loop"	anonymous	nobody	"When calling manage.py reset <appname> on a django project the script seems to get stuck in an infinite loop, never completing the operation. I've even let it run for a few hours straight, but it never finished. The exact same project seems to be working on a fellow developer's system (Arch Linux), with the same python version (2.7.3).

Giving an interrupt signal the following call stack trace is printed:
{{{
  File ""manage.py"", line 10, in <module>
    execute_from_command_line(sys.argv)
  File ""/usr/lib/python2.7/site-packages/django/core/management/__init__.py"", line 443, in execute_from_command_line
    utility.execute()
  File ""/usr/lib/python2.7/site-packages/django/core/management/__init__.py"", line 382, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File ""/usr/lib/python2.7/site-packages/django/core/management/base.py"", line 196, in run_from_argv
    self.execute(*args, **options.__dict__)
  File ""/usr/lib/python2.7/site-packages/django/core/management/base.py"", line 232, in execute
    output = self.handle(*args, **options)
  File ""/usr/lib/python2.7/site-packages/django/core/management/base.py"", line 304, in handle
    app_output = self.handle_app(app, **options)
  File ""/usr/lib/python2.7/site-packages/django/core/management/commands/reset.py"", line 51, in handle_app
    cursor.execute(sql)
  File ""/usr/lib/python2.7/site-packages/django/db/backends/util.py"", line 40, in execute
    return self.cursor.execute(sql, params)
  File ""/usr/lib/python2.7/site-packages/django/db/backends/mysql/base.py"", line 114, in execute
    return self.cursor.execute(query, args)
  File ""/usr/lib/python2.7/site-packages/MySQLdb/cursors.py"", line 161, in execute
    r = self._query(query)
KeyboardInterrupt

}}}

After the keyboard interrupt, the phpmyadmin interface also has difficulty loading. Somehow the bug seems to affect the sql daemon."	Bug	closed	Core (Management commands)	1.4	Normal	needsinfo	manage.py reset mysql arch		Unreviewed	0	0	0	0	0	0
