Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Первая же миграция 0001_initial.py выдает ошибку #16

Open
EvgeniiLovesc opened this issue Mar 29, 2021 · 0 comments

Comments

@EvgeniiLovesc
Copy link

Первая же миграция 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')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant