Travis 错误没有显式声明 app_label 并且不在 INSTALLED_APPS 中的应用程序中

Travis Error doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS

我正在尝试在 Travis 中构建我的应用程序,但我不断收到以下无法调试的错误。任何人都可以看出我可能做错了什么吗?

运行时错误:

Model class Code-Institute-Milestone-Project-05.babysitters.models.Babysitter doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.

INSTALLED_APPS = [
    'about',
    'accounts',
    'blog',
    'bookings',
    'babysitters',
    'contact',
    'checkout',
    'storages',
    'django.contrib.admin',
    'django.contrib.humanize',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'django_forms_bootstrap',
    'django_gravatar',
    'home',

我能够解决这个问题。结果是我的 tests.py 文件格式不正确并产生了这个错误。一旦我纠正了这个问题,构建就通过了。谢谢。