Django エラー return Database.Cursor.execute(self, query, params) django.db.utils.OperationalError: no such table:

エラーメッセージ

  return Database.Cursor.execute(self, query, params)
django.db.utils.OperationalError: no such table: xxxxxx.app

マイグレーションをしていないだけ

解決

$ python manage.py makemigrations

$ python manage.py migrate

$ python manage.py makemigrations
Migrations for 'xxxxapp':
  xxxxapp/migrations/0001_initial.py
    - Create model Restaurant


$ python manage.py migrate

Operations to perform:
  Apply all migrations: admin, auth, contenttypes, xxxxxapp, oauth2_provider, sessions, social_django
Running migrations:
  Applying xxxxxapp.0001_initial... OK