Advertisement
Guest User

Migrate error

a guest
Oct 6th, 2020
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.99 KB | None | 0 0
  1. (django-env) 10:39 ~/django-env/roctik_api (master)$ ./manage.py migrate
  2. Operations to perform:
  3.   Apply all migrations: admin, auth, contenttypes, sessions
  4. Running migrations:
  5.   Applying contenttypes.0001_initial... OK
  6.   Applying admin.0001_initial...Traceback (most recent call last):
  7.   File "/home/kurisu171/django-env/lib/python3.8/site-packages/django/db/backends/utils.py", line 82, in _execute
  8.     return self.cursor.execute(sql)
  9.   File "/home/kurisu171/django-env/lib/python3.8/site-packages/django/db/backends/sqlite3/base.py", line 411, in execute
  10.     return Database.Cursor.execute(self, query)
  11. sqlite3.OperationalError: no such table: api_user
  12.  
  13. The above exception was the direct cause of the following exception:
  14.  
  15. Traceback (most recent call last):
  16.   File "./manage.py", line 22, in <module>
  17.     main()
  18.   File "./manage.py", line 18, in main
  19.     execute_from_command_line(sys.argv)
  20.   File "/home/kurisu171/django-env/lib/python3.8/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line
  21.     utility.execute()
  22.   File "/home/kurisu171/django-env/lib/python3.8/site-packages/django/core/management/__init__.py", line 395, in execute
  23.     self.fetch_command(subcommand).run_from_argv(self.argv)
  24.   File "/home/kurisu171/django-env/lib/python3.8/site-packages/django/core/management/base.py", line 330, in run_from_argv
  25.     self.execute(*args, **cmd_options)
  26.   File "/home/kurisu171/django-env/lib/python3.8/site-packages/django/core/management/base.py", line 371, in execute
  27.     output = self.handle(*args, **options)
  28.   File "/home/kurisu171/django-env/lib/python3.8/site-packages/django/core/management/base.py", line 85, in wrapped
  29.     res = handle_func(*args, **kwargs)
  30.   File "/home/kurisu171/django-env/lib/python3.8/site-packages/django/core/management/commands/migrate.py", line 243, in handle
  31.     post_migrate_state = executor.migrate(
  32.   File "/home/kurisu171/django-env/lib/python3.8/site-packages/django/db/migrations/executor.py", line 117, in migrate
  33.     state = self._migrate_all_forwards(state, plan, full_plan, fake=fake, fake_initial=fake_initial)
  34.   File "/home/kurisu171/django-env/lib/python3.8/site-packages/django/db/migrations/executor.py", line 147, in _migrate_all_forwards
  35.     state = self.apply_migration(state, migration, fake=fake, fake_initial=fake_initial)
  36.   File "/home/kurisu171/django-env/lib/python3.8/site-packages/django/db/migrations/executor.py", line 229, in apply_migration
  37.     migration_recorded = True
  38.   File "/home/kurisu171/django-env/lib/python3.8/site-packages/django/db/backends/sqlite3/schema.py", line 35, in __exit__
  39.     self.connection.check_constraints()
  40.   File "/home/kurisu171/django-env/lib/python3.8/site-packages/django/db/backends/sqlite3/base.py", line 361, in check_constraints
  41.     cursor.execute(
  42.   File "/home/kurisu171/django-env/lib/python3.8/site-packages/django/db/backends/utils.py", line 98, in execute
  43.     return super().execute(sql, params)
  44.   File "/home/kurisu171/django-env/lib/python3.8/site-packages/django/db/backends/utils.py", line 66, in execute
  45.     return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  46.   File "/home/kurisu171/django-env/lib/python3.8/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers
  47.     return executor(sql, params, many, context)
  48.   File "/home/kurisu171/django-env/lib/python3.8/site-packages/django/db/backends/utils.py", line 84, in _execute
  49.     return self.cursor.execute(sql, params)
  50.   File "/home/kurisu171/django-env/lib/python3.8/site-packages/django/db/utils.py", line 90, in __exit__
  51.     raise dj_exc_value.with_traceback(traceback) from exc_value
  52.   File "/home/kurisu171/django-env/lib/python3.8/site-packages/django/db/backends/utils.py", line 82, in _execute
  53.     return self.cursor.execute(sql)
  54.   File "/home/kurisu171/django-env/lib/python3.8/site-packages/django/db/backends/sqlite3/base.py", line 411, in execute
  55.     return Database.Cursor.execute(self, query)
  56. django.db.utils.OperationalError: no such table: api_user
  57.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement