(mk31) aleks@debian:~/WORK/djpr/mk31$ python3 manage.py migrate
Traceback (most recent call last):
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/django/db/backends/utils.py", line 63, in execute
return self.cursor.execute(sql)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/django/db/backends/mysql/base.py", line 101, in execute
return self.cursor.execute(query, args)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/pymysql/cursors.py", line 166, in execute
result = self._query(query)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/pymysql/cursors.py", line 322, in _query
conn.query(q)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/pymysql/connections.py", line 856, in query
self._affected_rows = self._read_query_result(unbuffered=unbuffered)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/pymysql/connections.py", line 1057, in _read_query_result
result.read()
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/pymysql/connections.py", line 1340, in read
first_packet = self.connection._read_packet()
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/pymysql/connections.py", line 1014, in _read_packet
packet.check_error()
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/pymysql/connections.py", line 393, in check_error
err.raise_mysql_exception(self._data)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/pymysql/err.py", line 107, in raise_mysql_exception
raise errorclass(errno, errval)
pymysql.err.ProgrammingError: (1146, "Table 'dbmk31.django_migrations' doesn't exist")
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/django/db/migrations/recorder.py", line 57, in ensure_schema
editor.create_model(self.Migration)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/django/db/backends/base/schema.py", line 302, in create_model
self.execute(sql, params or None)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/django/db/backends/base/schema.py", line 119, in execute
cursor.execute(sql, params)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/django/db/backends/utils.py", line 80, in execute
return super(CursorDebugWrapper, self).execute(sql, params)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/django/db/backends/utils.py", line 65, in execute
return self.cursor.execute(sql, params)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/django/db/utils.py", line 94, in __exit__
six.reraise(dj_exc_type, dj_exc_value, traceback)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/django/utils/six.py", line 685, in reraise
raise value.with_traceback(tb)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/django/db/backends/utils.py", line 63, in execute
return self.cursor.execute(sql)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/django/db/backends/mysql/base.py", line 101, in execute
return self.cursor.execute(query, args)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/pymysql/cursors.py", line 166, in execute
result = self._query(query)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/pymysql/cursors.py", line 322, in _query
conn.query(q)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/pymysql/connections.py", line 856, in query
self._affected_rows = self._read_query_result(unbuffered=unbuffered)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/pymysql/connections.py", line 1057, in _read_query_result
result.read()
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/pymysql/connections.py", line 1340, in read
first_packet = self.connection._read_packet()
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/pymysql/connections.py", line 1014, in _read_packet
packet.check_error()
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/pymysql/connections.py", line 393, in check_error
err.raise_mysql_exception(self._data)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/pymysql/err.py", line 107, in raise_mysql_exception
raise errorclass(errno, errval)
django.db.utils.ProgrammingError: (1146, "Table 'dbmk31.django_migrations' doesn't exist")
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "manage.py", line 40, in
execute_from_command_line(sys.argv)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/django/core/management/__init__.py", line 363, in execute_from_command_line
utility.execute()
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/django/core/management/__init__.py", line 355, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/django/core/management/base.py", line 283, in run_from_argv
self.execute(*args, **cmd_options)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/django/core/management/base.py", line 330, in execute
output = self.handle(*args, **options)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/django/core/management/commands/migrate.py", line 83, in handle
executor = MigrationExecutor(connection, self.migration_progress_callback)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/django/db/migrations/executor.py", line 20, in __init__
self.loader = MigrationLoader(self.connection)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/django/db/migrations/loader.py", line 52, in __init__
self.build_graph()
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/django/db/migrations/loader.py", line 209, in build_graph
self.applied_migrations = recorder.applied_migrations()
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/django/db/migrations/recorder.py", line 65, in applied_migrations
self.ensure_schema()
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/django/db/migrations/recorder.py", line 59, in ensure_schema
raise MigrationSchemaMissing("Unable to create the django_migrations table (%s)" % exc)
django.db.migrations.exceptions.MigrationSchemaMissing: Unable to create the django_migrations table ((1146, "Table 'dbmk31.django_migrations' doesn't exist"))
(mk31) aleks@debian:~/WORK/djpr/mk31$ python3 manage.py makemigrations
Traceback (most recent call last):
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/django/db/backends/utils.py", line 63, in execute
return self.cursor.execute(sql)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/django/db/backends/mysql/base.py", line 101, in execute
return self.cursor.execute(query, args)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/pymysql/cursors.py", line 166, in execute
result = self._query(query)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/pymysql/cursors.py", line 322, in _query
conn.query(q)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/pymysql/connections.py", line 856, in query
self._affected_rows = self._read_query_result(unbuffered=unbuffered)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/pymysql/connections.py", line 1057, in _read_query_result
result.read()
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/pymysql/connections.py", line 1340, in read
first_packet = self.connection._read_packet()
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/pymysql/connections.py", line 1014, in _read_packet
packet.check_error()
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/pymysql/connections.py", line 393, in check_error
err.raise_mysql_exception(self._data)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/pymysql/err.py", line 107, in raise_mysql_exception
raise errorclass(errno, errval)
pymysql.err.ProgrammingError: (1146, "Table 'dbmk31.django_migrations' doesn't exist")
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/django/db/migrations/recorder.py", line 57, in ensure_schema
editor.create_model(self.Migration)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/django/db/backends/base/schema.py", line 302, in create_model
self.execute(sql, params or None)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/django/db/backends/base/schema.py", line 119, in execute
cursor.execute(sql, params)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/django/db/backends/utils.py", line 80, in execute
return super(CursorDebugWrapper, self).execute(sql, params)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/django/db/backends/utils.py", line 65, in execute
return self.cursor.execute(sql, params)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/django/db/utils.py", line 94, in __exit__
six.reraise(dj_exc_type, dj_exc_value, traceback)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/django/utils/six.py", line 685, in reraise
raise value.with_traceback(tb)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/django/db/backends/utils.py", line 63, in execute
return self.cursor.execute(sql)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/django/db/backends/mysql/base.py", line 101, in execute
return self.cursor.execute(query, args)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/pymysql/cursors.py", line 166, in execute
result = self._query(query)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/pymysql/cursors.py", line 322, in _query
conn.query(q)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/pymysql/connections.py", line 856, in query
self._affected_rows = self._read_query_result(unbuffered=unbuffered)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/pymysql/connections.py", line 1057, in _read_query_result
result.read()
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/pymysql/connections.py", line 1340, in read
first_packet = self.connection._read_packet()
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/pymysql/connections.py", line 1014, in _read_packet
packet.check_error()
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/pymysql/connections.py", line 393, in check_error
err.raise_mysql_exception(self._data)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/pymysql/err.py", line 107, in raise_mysql_exception
raise errorclass(errno, errval)
django.db.utils.ProgrammingError: (1146, "Table 'dbmk31.django_migrations' doesn't exist")
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "manage.py", line 40, in
execute_from_command_line(sys.argv)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/django/core/management/__init__.py", line 363, in execute_from_command_line
utility.execute()
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/django/core/management/__init__.py", line 355, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/django/core/management/base.py", line 283, in run_from_argv
self.execute(*args, **cmd_options)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/django/core/management/base.py", line 330, in execute
output = self.handle(*args, **options)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/django/core/management/commands/makemigrations.py", line 110, in handle
loader.check_consistent_history(connection)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/django/db/migrations/loader.py", line 282, in check_consistent_history
applied = recorder.applied_migrations()
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/django/db/migrations/recorder.py", line 65, in applied_migrations
self.ensure_schema()
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/django/db/migrations/recorder.py", line 59, in ensure_schema
raise MigrationSchemaMissing("Unable to create the django_migrations table (%s)" % exc)
django.db.migrations.exceptions.MigrationSchemaMissing: Unable to create the django_migrations table ((1146, "Table 'dbmk31.django_migrations' doesn't exist"))
(mk31) aleks@debian:~/WORK/djpr/mk31$ python manage.py makemigrations
Traceback (most recent call last):
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/django/db/backends/utils.py", line 63, in execute
return self.cursor.execute(sql)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/django/db/backends/mysql/base.py", line 101, in execute
return self.cursor.execute(query, args)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/pymysql/cursors.py", line 166, in execute
result = self._query(query)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/pymysql/cursors.py", line 322, in _query
conn.query(q)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/pymysql/connections.py", line 856, in query
self._affected_rows = self._read_query_result(unbuffered=unbuffered)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/pymysql/connections.py", line 1057, in _read_query_result
result.read()
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/pymysql/connections.py", line 1340, in read
first_packet = self.connection._read_packet()
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/pymysql/connections.py", line 1014, in _read_packet
packet.check_error()
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/pymysql/connections.py", line 393, in check_error
err.raise_mysql_exception(self._data)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/pymysql/err.py", line 107, in raise_mysql_exception
raise errorclass(errno, errval)
pymysql.err.ProgrammingError: (1146, "Table 'dbmk31.django_migrations' doesn't exist")
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/django/db/migrations/recorder.py", line 57, in ensure_schema
editor.create_model(self.Migration)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/django/db/backends/base/schema.py", line 302, in create_model
self.execute(sql, params or None)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/django/db/backends/base/schema.py", line 119, in execute
cursor.execute(sql, params)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/django/db/backends/utils.py", line 80, in execute
return super(CursorDebugWrapper, self).execute(sql, params)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/django/db/backends/utils.py", line 65, in execute
return self.cursor.execute(sql, params)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/django/db/utils.py", line 94, in __exit__
six.reraise(dj_exc_type, dj_exc_value, traceback)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/django/utils/six.py", line 685, in reraise
raise value.with_traceback(tb)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/django/db/backends/utils.py", line 63, in execute
return self.cursor.execute(sql)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/django/db/backends/mysql/base.py", line 101, in execute
return self.cursor.execute(query, args)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/pymysql/cursors.py", line 166, in execute
result = self._query(query)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/pymysql/cursors.py", line 322, in _query
conn.query(q)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/pymysql/connections.py", line 856, in query
self._affected_rows = self._read_query_result(unbuffered=unbuffered)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/pymysql/connections.py", line 1057, in _read_query_result
result.read()
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/pymysql/connections.py", line 1340, in read
first_packet = self.connection._read_packet()
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/pymysql/connections.py", line 1014, in _read_packet
packet.check_error()
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/pymysql/connections.py", line 393, in check_error
err.raise_mysql_exception(self._data)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/pymysql/err.py", line 107, in raise_mysql_exception
raise errorclass(errno, errval)
django.db.utils.ProgrammingError: (1146, "Table 'dbmk31.django_migrations' doesn't exist")
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "manage.py", line 40, in
execute_from_command_line(sys.argv)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/django/core/management/__init__.py", line 363, in execute_from_command_line
utility.execute()
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/django/core/management/__init__.py", line 355, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/django/core/management/base.py", line 283, in run_from_argv
self.execute(*args, **cmd_options)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/django/core/management/base.py", line 330, in execute
output = self.handle(*args, **options)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/django/core/management/commands/makemigrations.py", line 110, in handle
loader.check_consistent_history(connection)
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/django/db/migrations/loader.py", line 282, in check_consistent_history
applied = recorder.applied_migrations()
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/django/db/migrations/recorder.py", line 65, in applied_migrations
self.ensure_schema()
File "/home/aleks/WORK/env/mk31/lib/python3.5/site-packages/django/db/migrations/recorder.py", line 59, in ensure_schema
raise MigrationSchemaMissing("Unable to create the django_migrations table (%s)" % exc)
django.db.migrations.exceptions.MigrationSchemaMissing: Unable to create the django_migrations table ((1146, "Table 'dbmk31.django_migrations' doesn't exist"))