Apache/Django安装:RuntimeError:模型类django.contrib.contenttypes.models.ContentType未声明显式

Rob*_*rt 5 python apache django django-models

我在centos7上使用Django 1.9和python 2.7

我只是在尝试使用Apache与Django时收到以下错误.

RuntimeError: Model class django.contrib.contenttypes.models.ContentType doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.
Run Code Online (Sandbox Code Playgroud)

我没有使用Django Web服务器获取错误,我的应用程序在Django Web服务器下工作正常,但我已经读过不使用Django Web服务器而是使用Apache.

我遇到了多个问题,试图让apache与django一起工作,并找到了解决所有上述问题的解决方案,但无法解决这个问题.

以下是我django.contrib.contenttypes按此顺序在列表中安装了" "的应用程序:

'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'admin_alerts',
'admin_dq_metrics',
'admin_db_conn',
'admin_file_conn',
'admin_application',
'admin_process',
'admin_src_status_chk',
'admin_scheduler_template',
'export_to_db',
'export_to_file',
'migrate_to_prod',
'migrate_to_stg',
'migrate_to_dev',
'tableau_tde',
'ingest_file',
'ingest_db',
'scheduler',
'dq_entity_cross_ref',
'high_water_column_ref',
'process_control',
'difa_login',
'admin_create_user',
'update_export_ingest_data',
'admin_add_user',
'django.contrib.sites',
Run Code Online (Sandbox Code Playgroud)

谢谢...