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

KeyError: ('payu', 'nonseamlesstransaction') #22

Open
MsMansiDhruv opened this issue Aug 22, 2019 · 0 comments
Open

KeyError: ('payu', 'nonseamlesstransaction') #22

MsMansiDhruv opened this issue Aug 22, 2019 · 0 comments

Comments

@MsMansiDhruv
Copy link

After installing django-payu in my virtual environment and adding it into INSTALLED_APPS section, when I execute command python3 manage.py migrate
I get the following error:

Operations to perform:
Apply all migrations: address, admin, analytics, auth, basket, catalogue, contenttypes, customer, flatpages, offer, order, partner, payment, payu, reviews, sessions, shipping, sites, thumbnail, voucher, wishlists
Running migrations:
Applying payu.0002_nonseamlesstransaction_basket...Traceback (most recent call last):
File "manage.py", line 21, in
main()
File "manage.py", line 17, in main
execute_from_command_line(sys.argv)
File "/home/cypher/Desktop/environments/lib/python3.6/site-packages/django/core/management/init.py", line 371, in execute_from_command_line
utility.execute()
File "/home/cypher/Desktop/environments/lib/python3.6/site-packages/django/core/management/init.py", line 365, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/cypher/Desktop/environments/lib/python3.6/site-packages/django/core/management/base.py", line 288, in run_from_argv
self.execute(*args, **cmd_options)
File "/home/cypher/Desktop/environments/lib/python3.6/site-packages/django/core/management/base.py", line 335, in execute
output = self.handle(*args, **options)
File "/home/cypher/Desktop/environments/lib/python3.6/site-packages/django/core/management/commands/migrate.py", line 200, in handle
fake_initial=fake_initial,
File "/home/cypher/Desktop/environments/lib/python3.6/site-packages/django/db/migrations/executor.py", line 117, in migrate
state = self._migrate_all_forwards(state, plan, full_plan, fake=fake, fake_initial=fake_initial)
File "/home/cypher/Desktop/environments/lib/python3.6/site-packages/django/db/migrations/executor.py", line 147, in _migrate_all_forwards
state = self.apply_migration(state, migration, fake=fake, fake_initial=fake_initial)
File "/home/cypher/Desktop/environments/lib/python3.6/site-packages/django/db/migrations/executor.py", line 244, in apply_migration
state = migration.apply(state, schema_editor)
File "/home/cypher/Desktop/environments/lib/python3.6/site-packages/django/db/migrations/migration.py", line 112, in apply
operation.state_forwards(self.app_label, project_state)
File "/home/cypher/Desktop/environments/lib/python3.6/site-packages/django/db/migrations/operations/fields.py", line 70, in state_forwards
state.models[app_label, self.model_name_lower].fields.append((self.name, field))
KeyError: ('payu', 'nonseamlesstransaction')

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