makemigrations - 无法找到App'stock_market'。它在INSTALLED_APPS中吗?

时间:2016-11-29 11:41:44

标签: python django

再次编辑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/

它给了我那个错误

1 个答案:

答案 0 :(得分:6)

删除/

末尾的stock_market/
python manage.py makemigrations stock_market