我在 Windows 上并尝试在名为Apps的公共文件夹中创建一个新应用程序。myApp文件夹已存在于Apps中。我从项目根目录运行:
python manage.py startapp myApp Apps\myApp
我得到:
Error: 'Apps\\myApp' is not a valid app name. Please use only numbers, letters and underscores.
我不知道为什么那个双反斜杠。为了确定,我还尝试了正斜杠:
python manage.py startapp myApp Apps/myApp
我明白了:
Error: 'myApp' conflicts with the name of an existing Python module and cannot be used as an app name. Please try another name.
我不明白这是 Windows 问题还是 Python 问题。