Ticket #24573: traceback.py

File traceback.py, 4.3 KB (added by Tomasz Główka, 10 years ago)
Line 
1Operations to perform:
2 Target specific migration: 0001_initial, from bugapp
3Running migrations:
4 Rendering model states... DONE
5 Applying bugapp.0001_initial...Traceback (most recent call last):
6 File "./manage.py", line 10, in <module>
7 execute_from_command_line(sys.argv)
8 File "/home/tomek/htdocs/isivi/env/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 338, in execute_from_command_line
9 utility.execute()
10 File "/home/tomek/htdocs/isivi/env/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 330, in execute
11 self.fetch_command(subcommand).run_from_argv(self.argv)
12 File "/home/tomek/htdocs/isivi/env/local/lib/python2.7/site-packages/django/core/management/base.py", line 390, in run_from_argv
13 self.execute(*args, **cmd_options)
14 File "/home/tomek/htdocs/isivi/env/local/lib/python2.7/site-packages/django/core/management/base.py", line 441, in execute
15 output = self.handle(*args, **options)
16 File "/home/tomek/htdocs/isivi/env/local/lib/python2.7/site-packages/django/core/management/commands/migrate.py", line 221, in handle
17 executor.migrate(targets, plan, fake=fake, fake_initial=fake_initial)
18 File "/home/tomek/htdocs/isivi/env/local/lib/python2.7/site-packages/django/db/migrations/executor.py", line 110, in migrate
19 self.apply_migration(states[migration], migration, fake=fake, fake_initial=fake_initial)
20 File "/home/tomek/htdocs/isivi/env/local/lib/python2.7/site-packages/django/db/migrations/executor.py", line 147, in apply_migration
21 state = migration.apply(state, schema_editor)
22 File "/home/tomek/htdocs/isivi/env/local/lib/python2.7/site-packages/django/db/migrations/migration.py", line 112, in apply
23 operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
24 File "/home/tomek/htdocs/isivi/env/local/lib/python2.7/site-packages/django/db/migrations/operations/special.py", line 181, in database_forwards
25 self.code(from_state.apps, schema_editor)
26 File "/home/tomek/htdocs/isivi/isivi/apps/bugapp/migrations/0001_initial.py", line 9, in fetch_main_person
27 person_or_none = MainPerson.objects.first()
28 File "/home/tomek/htdocs/isivi/env/local/lib/python2.7/site-packages/django/db/models/manager.py", line 127, in manager_method
29 return getattr(self.get_queryset(), name)(*args, **kwargs)
30 File "/home/tomek/htdocs/isivi/env/local/lib/python2.7/site-packages/django/db/models/query.py", line 490, in first
31 objects = list((self if self.ordered else self.order_by('pk'))[:1])
32 File "/home/tomek/htdocs/isivi/env/local/lib/python2.7/site-packages/django/db/models/query.py", line 162, in __iter__
33 self._fetch_all()
34 File "/home/tomek/htdocs/isivi/env/local/lib/python2.7/site-packages/django/db/models/query.py", line 965, in _fetch_all
35 self._result_cache = list(self.iterator())
36 File "/home/tomek/htdocs/isivi/env/local/lib/python2.7/site-packages/django/db/models/query.py", line 238, in iterator
37 results = compiler.execute_sql()
38 File "/home/tomek/htdocs/isivi/env/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 829, in execute_sql
39 cursor.execute(sql, params)
40 File "/home/tomek/htdocs/isivi/env/local/lib/python2.7/site-packages/django/db/backends/utils.py", line 79, in execute
41 return super(CursorDebugWrapper, self).execute(sql, params)
42 File "/home/tomek/htdocs/isivi/env/local/lib/python2.7/site-packages/django/db/backends/utils.py", line 64, in execute
43 return self.cursor.execute(sql, params)
44 File "/home/tomek/htdocs/isivi/env/local/lib/python2.7/site-packages/django/db/utils.py", line 97, in __exit__
45 six.reraise(dj_exc_type, dj_exc_value, traceback)
46 File "/home/tomek/htdocs/isivi/env/local/lib/python2.7/site-packages/django/db/backends/utils.py", line 64, in execute
47 return self.cursor.execute(sql, params)
48 File "/home/tomek/htdocs/isivi/env/local/lib/python2.7/site-packages/django/db/backends/mysql/base.py", line 124, in execute
49 return self.cursor.execute(query, args)
50 File "/home/tomek/htdocs/isivi/env/local/lib/python2.7/site-packages/MySQLdb/cursors.py", line 205, in execute
51 self.errorhandler(self, exc, value)
52 File "/home/tomek/htdocs/isivi/env/local/lib/python2.7/site-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
53 raise errorclass, errorvalue
54django.db.utils.OperationalError: (1054, "Unknown column 'bugapp_person.name' in 'field list'")
Back to Top