再次编辑project / settings.py文件,并将INSTALLED_APPS设置更改为包含字符串'polls'。所以它看起来像这样:
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'stock_market'
]
当我运行命令
时python manage.py makemigrations stock_market/
它给了我那个错误
答案 0 :(得分:6)
删除/
stock_market/
python manage.py makemigrations stock_market