很抱歉出现一般性问题;我不确定如何最好地对问题进行分类。
我有一个本地开发的Django项目,然后我推到GitHub与某人协作(我是GitHub的新手)。我使用pycharm进行了此操作,该项目被复制到PycharmProjects的子目录中。它似乎工作正常。我有一个星期没有使用它,在此期间我升级到了Catalina。
我已经回到项目上工作了,它完全坏了!我无法从PycharmProjects目录或桌面上的原始工作目录启动并运行开发服务器。我怀疑在PycharmProjects文件夹中,这是路径或依赖性问题,但是我没有更改原始文件夹中的任何内容。
我可以激活虚拟环境,然后出现以下错误:
(ll_env) Davids-MacBook-Pro-2:POM_Journal_Club davidhallsworth$ python manage.py runserver
File "manage.py", line 16
) from exc
^
SyntaxError: invalid syntax
(ll_env) Davids-MacBook-Pro-2:POM_Journal_Club davidhallsworth$ python3 manage.py runserver
Traceback (most recent call last):
File "manage.py", line 10, in main
from django.core.management import execute_from_command_line
ModuleNotFoundError: No module named 'django'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "manage.py", line 21, in <module>
main()
File "manage.py", line 16, in main
) from exc
ImportError: Couldn't import Django. Are you sure it's installed and available on your PYTHONPATH environment variable? Did you forget to activate a virtual environment?
该存储库位于https://github.com/dchallsworth/POM_Journal_Club
任何帮助将不胜感激!!这是我的第一个项目,花了很多时间来学习。