You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Первая же миграция 0001_initial.py выдает ошибку:
Traceback (most recent call last):
File "manage.py", line 22, in
main()
File "manage.py", line 18, in main
execute_from_command_line(sys.argv)
File "/home/django/wifitochka/wifitochka_env/lib/python3.8/site-packages/django/core/management/init.py", line 401, in execute_from_command_line
utility.execute()
File "/home/django/wifitochka/wifitochka_env/lib/python3.8/site-packages/django/core/management/init.py", line 395, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/django/wifitochka/wifitochka_env/lib/python3.8/site-packages/django/core/management/base.py", line 330, in run_from_argv
self.execute(*args, **cmd_options)
File "/home/django/wifitochka/wifitochka_env/lib/python3.8/site-packages/django/core/management/base.py", line 371, in execute
output = self.handle(*args, **options)
File "/home/django/wifitochka/wifitochka_env/lib/python3.8/site-packages/django/core/management/base.py", line 85, in wrapped
res = handle_func(*args, **kwargs)
File "/home/django/wifitochka/wifitochka_env/lib/python3.8/site-packages/django/core/management/commands/migrate.py", line 201, in handle
pre_migrate_state = executor._create_project_state(with_applied_migrations=True)
File "/home/django/wifitochka/wifitochka_env/lib/python3.8/site-packages/django/db/migrations/executor.py", line 79, in _create_project_state
migration.mutate_state(state, preserve=False)
File "/home/django/wifitochka/wifitochka_env/lib/python3.8/site-packages/django/db/migrations/migration.py", line 87, in mutate_state
operation.state_forwards(self.app_label, new_state)
File "/home/django/wifitochka/wifitochka_env/lib/python3.8/site-packages/django/db/migrations/operations/fields.py", line 92, in state_forwards
state.models[app_label, self.model_name_lower].fields[self.name] = field
KeyError: ('sberbank', 'payment')
The text was updated successfully, but these errors were encountered:
Первая же миграция 0001_initial.py выдает ошибку:
Traceback (most recent call last):
File "manage.py", line 22, in
main()
File "manage.py", line 18, in main
execute_from_command_line(sys.argv)
File "/home/django/wifitochka/wifitochka_env/lib/python3.8/site-packages/django/core/management/init.py", line 401, in execute_from_command_line
utility.execute()
File "/home/django/wifitochka/wifitochka_env/lib/python3.8/site-packages/django/core/management/init.py", line 395, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/django/wifitochka/wifitochka_env/lib/python3.8/site-packages/django/core/management/base.py", line 330, in run_from_argv
self.execute(*args, **cmd_options)
File "/home/django/wifitochka/wifitochka_env/lib/python3.8/site-packages/django/core/management/base.py", line 371, in execute
output = self.handle(*args, **options)
File "/home/django/wifitochka/wifitochka_env/lib/python3.8/site-packages/django/core/management/base.py", line 85, in wrapped
res = handle_func(*args, **kwargs)
File "/home/django/wifitochka/wifitochka_env/lib/python3.8/site-packages/django/core/management/commands/migrate.py", line 201, in handle
pre_migrate_state = executor._create_project_state(with_applied_migrations=True)
File "/home/django/wifitochka/wifitochka_env/lib/python3.8/site-packages/django/db/migrations/executor.py", line 79, in _create_project_state
migration.mutate_state(state, preserve=False)
File "/home/django/wifitochka/wifitochka_env/lib/python3.8/site-packages/django/db/migrations/migration.py", line 87, in mutate_state
operation.state_forwards(self.app_label, new_state)
File "/home/django/wifitochka/wifitochka_env/lib/python3.8/site-packages/django/db/migrations/operations/fields.py", line 92, in state_forwards
state.models[app_label, self.model_name_lower].fields[self.name] = field
KeyError: ('sberbank', 'payment')
The text was updated successfully, but these errors were encountered: