Advertisement
fedorm

Untitled

Mar 21st, 2020
463
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.29 KB | None | 0 0
  1. Operations to perform:
  2. Apply all migrations: admin, auth, contenttypes, sessions
  3. Running migrations:
  4. Applying admin.0001_initial...Traceback (most recent call last):
  5. File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 86, in _execute
  6. return self.cursor.execute(sql, params)
  7. psycopg2.errors.UndefinedTable: relation "api_customuser" does not exist
  8.  
  9.  
  10. The above exception was the direct cause of the following exception:
  11.  
  12. Traceback (most recent call last):
  13. File "manage.py", line 21, in <module>
  14. main()
  15. File "manage.py", line 17, in main
  16. execute_from_command_line(sys.argv)
  17. File "/usr/local/lib/python3.8/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line
  18. utility.execute()
  19. File "/usr/local/lib/python3.8/site-packages/django/core/management/__init__.py", line 395, in execute
  20. self.fetch_command(subcommand).run_from_argv(self.argv)
  21. File "/usr/local/lib/python3.8/site-packages/django/core/management/base.py", line 328, in run_from_argv
  22. self.execute(*args, **cmd_options)
  23. File "/usr/local/lib/python3.8/site-packages/django/core/management/base.py", line 369, in execute
  24. output = self.handle(*args, **options)
  25. File "/usr/local/lib/python3.8/site-packages/django/core/management/base.py", line 83, in wrapped
  26. res = handle_func(*args, **kwargs)
  27. File "/usr/local/lib/python3.8/site-packages/django/core/management/commands/migrate.py", line 231, in handle
  28. post_migrate_state = executor.migrate(
  29. File "/usr/local/lib/python3.8/site-packages/django/db/migrations/executor.py", line 117, in migrate
  30. state = self._migrate_all_forwards(state, plan, full_plan, fake=fake, fake_initial=fake_initial)
  31. File "/usr/local/lib/python3.8/site-packages/django/db/migrations/executor.py", line 147, in _migrate_all_forwards
  32. state = self.apply_migration(state, migration, fake=fake, fake_initial=fake_initial)
  33. File "/usr/local/lib/python3.8/site-packages/django/db/migrations/executor.py", line 247, in apply_migration
  34. migration_recorded = True
  35. File "/usr/local/lib/python3.8/site-packages/django/db/backends/base/schema.py", line 115, in __exit__
  36. self.execute(sql)
  37. File "/usr/local/lib/python3.8/site-packages/django/db/backends/base/schema.py", line 142, in execute
  38. cursor.execute(sql, params)
  39. File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 100, in execute
  40. return super().execute(sql, params)
  41. File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 68, in execute
  42. return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  43. File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 77, in _execute_with_wrappers
  44. return executor(sql, params, many, context)
  45. File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 86, in _execute
  46. return self.cursor.execute(sql, params)
  47. File "/usr/local/lib/python3.8/site-packages/django/db/utils.py", line 90, in __exit__
  48. raise dj_exc_value.with_traceback(traceback) from exc_value
  49. File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 86, in _execute
  50. return self.cursor.execute(sql, params)
  51. django.db.utils.ProgrammingError: relation "api_customuser" does not exist
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement