我是 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
关于python - 无法启动 Django 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50962120/