我正在尝试安装 djangocms-vimeo 0.4.0。
我通过 pip install djangocms-vimeo
成功安装
但是当我尝试添加 django-project 的设置并在迁移后,我收到此错误:
Traceback (most recent call last):
.......
class Site(models.Model):
File "/home/cristian/Anaconda3/lib/python3.8/site-packages/django/db/models/base.py", line 113, in __new__
raise RuntimeError(
RuntimeError: Model class django.contrib.sites.models.Site doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.
这是我的settings.py
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'filmapp.apps.FilmappConfig',
'djangocms_vimeo',
]