기존에는 파일만 업로드 해도 자동으로 DB에 들어갔었는데 submit 버튼 누르면 editrank api를 호출해서 DB로 추가하게 변경
dong@dong-VirtualBox:~/Desktop/Sejong.creative.semester.2021$ docker-compose exec oj-backend python manage.py makemigrations
Django VERSION (2, 1, 7, 'final', 0)
[2021-11-07 10:23:39] - [DEBUG] - [django_dbconn_retry:83] - django_dbconn_retry: monkeypatching BaseDatabaseWrapper
[2021-11-07 10:23:39] - [DEBUG] - [raven.contrib.django.client.DjangoClient:272] - Configuring Raven for host: <https://sentry.io>
[2021-11-07 10:23:40] - [INFO] - [aicontest.views.oj:187] - inin
[2021-11-07 10:23:40] - [INFO] - [aicontest.views.admin:744] - admin_inin
[2021-11-07 10:23:40] - [DEBUG] - [raven.contrib.django.client.DjangoClient:726] - Sending message of length 3348 to <https://sentry.io/api/263057/store/>
Traceback (most recent call last):
File "manage.py", line 12, in <module>
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.7/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.7/site-packages/django/core/management/__init__.py", line 375, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python3.7/site-packages/django/core/management/base.py", line 316, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/local/lib/python3.7/site-packages/django/core/management/base.py", line 353, in execute
output = self.handle(*args, **options)
File "/usr/local/lib/python3.7/site-packages/django/core/management/base.py", line 83, in wrapped
res = handle_func(*args, **kwargs)
File "/usr/local/lib/pythㄴㅗon3.7/site-packages/django/core/management/commands/makemigrations.py", line 103, in handle
loader.check_consistent_history(connection)
File "/usr/local/lib/python3.7/site-packages/django/db/migrations/loader.py", line 297, in check_consistent_history
connection.alias,
django.db.migrations.exceptions.InconsistentMigrationHistory: Migration aicontest.0001_initial is applied before its dependency contest.0010_auto_20190326_0201 on database 'default'.
Sentry is attempting to send 1 pending error messages
Waiting up to 10 seconds
Press Ctrl-C to quit
[2021-11-07 10:23:41] - [ERROR] - [sentry.errors:684] - Sentry responded with an API error: RateLimited(None)
b'Sentry responded with an API error: RateLimited(None)'
[2021-11-07 10:23:41] - [ERROR] - [sentry.errors.uncaught:712] - ["InconsistentMigrationHistory: Migration aicontest.0001_initial is applied before its dependency contest.0010_auto_20190326_0201 on database 'default'.", ' File "manage.py", line 12, in <module>', ' File "django/core/management/__init__.py", line 381, in execute_from_command_line', ' File "django/core/management/__init__.py", line 375, in execute', ' File "django/core/management/base.py", line 316, in run_from_argv', ' File "django/core/management/base.py", line 353, in execute', ' File "django/core/management/base.py", line 83, in wrapped', ' File "django/core/management/commands/makemigrations.py", line 103, in handle', ' File "django/db/migrations/loader.py", line 297, in check_consistent_history']
b'["InconsistentMigrationHistory: Migration aicontest.0001_initial is applied before its dependency contest.0010_auto_20190326_0201 on database \\'default\\'.", \\' File "manage.py", line 12, in <module>\\', \\' File "django/core/management/__init__.py", line 381, in execute_from_command_line\\', \\' File "django/core/management/__init__.py", line 375, in execute\\', \\' File "django/core/management/base.py", line 316, in run_from_argv\\', \\' File "django/core/management/base.py", line 353, in execute\\', \\' File "django/core/management/base.py", line 83, in wrapped\\', \\' File "django/core/management/commands/makemigrations.py", line 103, in handle\\', \\' File "django/db/migrations/loader.py", line 297, in check_consistent_history\\']'
dong@dong-VirtualBox:~/Desktop/Sejong.creative.semester.2021$
dong@dong-VirtualBox:~/Desktop/Sejong.creative.semester.2021$ docker-compose exec oj-backend python manage.py makemigrations
Django VERSION (2, 1, 7, 'final', 0)
[2021-11-07 10:29:17] - [DEBUG] - [django_dbconn_retry:83] - django_dbconn_retry: monkeypatching BaseDatabaseWrapper
[2021-11-07 10:29:17] - [DEBUG] - [raven.contrib.django.client.DjangoClient:272] - Configuring Raven for host: <https://sentry.io>
[2021-11-07 10:29:17] - [INFO] - [aicontest.views.oj:187] - inin
[2021-11-07 10:29:17] - [INFO] - [aicontest.views.admin:744] - admin_inin
[2021-11-07 10:29:18] - [DEBUG] - [raven.contrib.django.client.DjangoClient:726] - Sending message of length 3356 to <https://sentry.io/api/263057/store/>
Traceback (most recent call last):
File "manage.py", line 12, in <module>
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.7/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.7/site-packages/django/core/management/__init__.py", line 375, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python3.7/site-packages/django/core/management/base.py", line 316, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/local/lib/python3.7/site-packages/django/core/management/base.py", line 353, in execute
output = self.handle(*args, **options)
File "/usr/local/lib/python3.7/site-packages/django/core/management/base.py", line 83, in wrapped
res = handle_func(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/django/core/management/commands/makemigrations.py", line 103, in handle
loader.check_consistent_history(connection)
File "/usr/local/lib/python3.7/site-packages/django/db/migrations/loader.py", line 297, in check_consistent_history
connection.alias,
django.db.migrations.exceptions.InconsistentMigrationHistory: Migration aicontest.0001_initial is applied before its dependency contest.0010_auto_20190326_0201 on database 'default'.
Sentry is attempting to send 1 pending error messages
Waiting up to 10 seconds
Press Ctrl-C to quit
[2021-11-07 10:29:18] - [ERROR] - [sentry.errors:684] - Sentry responded with an API error: RateLimited(None)
b'Sentry responded with an API error: RateLimited(None)'
[2021-11-07 10:29:18] - [ERROR] - [sentry.errors.uncaught:712] - ["InconsistentMigrationHistory: Migration aicontest.0001_initial is applied before its dependency contest.0010_auto_20190326_0201 on database 'default'.", ' File "manage.py", line 12, in <module>', ' File "django/core/management/__init__.py", line 381, in execute_from_command_line', ' File "django/core/management/__init__.py", line 375, in execute', ' File "django/core/management/base.py", line 316, in run_from_argv', ' File "django/core/management/base.py", line 353, in execute', ' File "django/core/management/base.py", line 83, in wrapped', ' File "django/core/management/commands/makemigrations.py", line 103, in handle', ' File "django/db/migrations/loader.py", line 297, in check_consistent_history']
b'["InconsistentMigrationHistory: Migration aicontest.0001_initial is applied before its dependency contest.0010_auto_20190326_0201 on database \\'default\\'.", \\' File "manage.py", line 12, in <module>\\', \\' File "django/core/management/__init__.py", line 381, in execute_from_command_line\\', \\' File "django/core/management/__init__.py", line 375, in execute\\', \\' File "django/core/management/base.py", line 316, in run_from_argv\\', \\' File "django/core/management/base.py", line 353, in execute\\', \\' File "django/core/management/base.py", line 83, in wrapped\\', \\' File "django/core/management/commands/makemigrations.py", line 103, in handle\\', \\' File "django/db/migrations/loader.py", line 297, in check_consistent_history\\']'