Djangoで作ったWEBサイトをさくらVPS上で公開しようとしたのですが、migrateができません。
VPSのOSは、Ubuntu serverで、データベースは、PostgreSQLを使用しています。
さくらVPS上では、venv環境を適用しており、必要となるものは全てインストールしていると思います。
python manage.py migrateをした場合のエラーは、添付のとおりです。
(testfields) testuser@ik1-315-17973:~/myproject/testfields$ python manage.py migrate
System check identified some issues:
WARNINGS:
?: (2_0.W001) Your URL pattern '^jet/' has a route that contains '(?P<', begins with a '^', or ends with a '$'. This was likely an oversight when migrating to django.urls.path().
?: (urls.W005) URL namespace 'social' isn't unique. You may not be able to reverse all URLs in this namespace
Operations to perform:
Apply all migrations: admin, test, auth, contenttypes, jet, sessions, social_django
Running migrations:
Applying social_django.0005_auto_20160727_2333...Traceback (most recent call last):
File "manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/home/testuser/myproject/testfields/lib/python3.5/site-packages/django/core/management/init.py", line 371, in execute_from_command_line
utility.execute()
File "/home/testuser/myproject/testfields/lib/python3.5/site-packages/django/core/management/init.py", line 365, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/testuser/myproject/testfields/lib/python3.5/site-packages/django/core/management/base.py", line 288, in run_from_argv
self.execute(*args, **cmd_options)
File "/home/testuser/myproject/testfields/lib/python3.5/site-packages/django/core/management/base.py", line 335, in execute
output = self.handle(*args, **options)
File "/home/testuser/myproject/testfields/lib/python3.5/site-packages/django/core/management/commands/migrate.py", line 200, in handle
fake_initial=fake_initial,
File "/home/testuser/myproject/testfields/lib/python3.5/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/testuser/myproject/testfields/lib/python3.5/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/testuser/myproject/testfields/lib/python3.5/site-packages/django/db/migrations/executor.py", line 244, in apply_migration
state = migration.apply(state, schema_editor)
File "/home/testuser/myproject/testfields/lib/python3.5/site-packages/django/db/migrations/migration.py", line 112, in apply
operation.state_forwards(self.app_label, project_state)
File "/home/testuser/myproject/testfields/lib/python3.5/site-packages/django/db/migrations/operations/models.py", line 514, in state_forwards
model_state = state.models[app_label, self.name_lower]
KeyError: ('social_django', 'association')
エラーの内容のコピーが長くなり申し訳ありません。
KeyError: ('social_django', 'association')というのが、何なのか分からず、もしどなたかお気づきの点がある方、見えましたら、ご教示頂ければ幸いです。
よろしくお願い致します。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。