Ticket #29674: bug.txt

File bug.txt, 3.8 KB (added by Rixkz, 6 years ago)
Line 
1This error had happen after I do migrate
2
3 Applying posts.0002_post_user...Traceback (most recent call last):
4 File "manage.py", line 15, in <module>
5 execute_from_command_line(sys.argv)
6 File "/Users/<cencor>/Desktop/Work/Python/django-project/lib/python3.7/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
7 utility.execute()
8 File "/Users/<cencor>/Desktop/Work/Python/django-project/lib/python3.7/site-packages/django/core/management/__init__.py", line 375, in execute
9 self.fetch_command(subcommand).run_from_argv(self.argv)
10 File "/Users/<cencor>/Desktop/Work/Python/django-project/lib/python3.7/site-packages/django/core/management/base.py", line 316, in run_from_argv
11 self.execute(*args, **cmd_options)
12 File "/Users/<cencor>/Desktop/Work/Python/django-project/lib/python3.7/site-packages/django/core/management/base.py", line 353, in execute
13 output = self.handle(*args, **options)
14 File "/Users/<cencor>/Desktop/Work/Python/django-project/lib/python3.7/site-packages/django/core/management/base.py", line 83, in wrapped
15 res = handle_func(*args, **kwargs)
16 File "/Users/<cencor>/Desktop/Work/Python/django-project/lib/python3.7/site-packages/django/core/management/commands/migrate.py", line 203, in handle
17 fake_initial=fake_initial,
18 File "/Users/<cencor>/Desktop/Work/Python/django-project/lib/python3.7/site-packages/django/db/migrations/executor.py", line 117, in migrate
19 state = self._migrate_all_forwards(state, plan, full_plan, fake=fake, fake_initial=fake_initial)
20 File "/Users/<cencor>/Desktop/Work/Python/django-project/lib/python3.7/site-packages/django/db/migrations/executor.py", line 147, in _migrate_all_forwards
21 state = self.apply_migration(state, migration, fake=fake, fake_initial=fake_initial)
22 File "/Users/<cencor>/Desktop/Work/Python/django-project/lib/python3.7/site-packages/django/db/migrations/executor.py", line 244, in apply_migration
23 state = migration.apply(state, schema_editor)
24 File "/Users/<cencor>/Desktop/Work/Python/django-project/lib/python3.7/site-packages/django/db/migrations/migration.py", line 124, in apply
25 operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
26 File "/Users/<cencor>/Desktop/Work/Python/django-project/lib/python3.7/site-packages/django/db/migrations/operations/fields.py", line 84, in database_forwards
27 field,
28 File "/Users/<cencor>/Desktop/Work/Python/django-project/lib/python3.7/site-packages/django/db/backends/sqlite3/schema.py", line 300, in add_field
29 self._remake_table(model, create_field=field)
30 File "/Users/<cencor>/Desktop/Work/Python/django-project/lib/python3.7/site-packages/django/db/backends/sqlite3/schema.py", line 172, in _remake_table
31 self.effective_default(create_field)
32 File "/Users/<cencor>/Desktop/Work/Python/django-project/lib/python3.7/site-packages/django/db/backends/base/schema.py", line 239, in effective_default
33 return field.get_db_prep_save(default, self.connection)
34 File "/Users/<cencor>/Desktop/Work/Python/django-project/lib/python3.7/site-packages/django/db/models/fields/related.py", line 937, in get_db_prep_save
35 return self.target_field.get_db_prep_save(value, connection=connection)
36 File "/Users/<cencor>/Desktop/Work/Python/django-project/lib/python3.7/site-packages/django/db/models/fields/__init__.py", line 790, in get_db_prep_save
37 return self.get_db_prep_value(value, connection=connection, prepared=False)
38 File "/Users/<cencor>/Desktop/Work/Python/django-project/lib/python3.7/site-packages/django/db/models/fields/__init__.py", line 956, in get_db_prep_value
39 value = self.get_prep_value(value)
40 File "/Users/<cencor>/Desktop/Work/Python/django-project/lib/python3.7/site-packages/django/db/models/fields/__init__.py", line 965, in get_prep_value
41 return int(value)
42ValueError: invalid literal for int() with base 10: 'auth.User'
Back to Top