【问题标题】:Cannot start django app无法启动 django 应用程序
【发布时间】:2018-11-30 09:47:00
【问题描述】:

我是 Django 的新手,每次尝试运行 (myvenv) C:\Users\lenovo> python manage.py startapp blog时都会出现错误:

CommandError: 'blog' conflicts with the name of an existing Python module and cannot be used as an app name. Please try another name.

我做错了吗?

【问题讨论】:

标签: python django web frameworks development-environment


【解决方案1】:

您无法从项目上方的目录运行该命令。 你应该这样做:

cd projectName
python manage.py startapp blog

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-06-19
    • 1970-01-01
    • 1970-01-01
    • 2018-04-03
    相关资源
    最近更新 更多