1146 table doesn t exist django I supposed it was raised because model of my app depends on django_content_type table (contenttypes app), so thats why I run. django_apscheduler_djangojob' doesn't exist") 原因: 项目配置文件 settings. sessions', 'django. django_session' doesn't exist") Because there is no Django in the database table_session. This meant that it didn't run the migrations that should have been done at the same time, which includes creating the "sessions" table. myapp_mymodel' doesn't exist") Which happens because Django is looking for the table in the first database, while the table is in the second database. When i try to execute python manage. contenttypes', 'django. py migrate contenttypes --database=db-connection-name But it alse raises ProgrammingError: table django_content_type doesn’t exists . Aug 14, 2021 · django.