Skip to main content
 首页 » 编程设计

python之无法启动 Django 应用程序

2024年08月15日31arxive

我是 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. 

我做错了什么吗?

请您参考如下方法:

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

cd projectName 
python manage.py startapp blog