PyCharm can't find the right paths if I open a directory that is not the Django root

后端 未结 3 1994
既然无缘
既然无缘 2020-12-13 00:21

Our projects are usually structured:

/project-name
  /src
    /django-project-name
      etc..
readme.md
requirements.txt

If I open /

3条回答
  •  鱼传尺愫
    2020-12-13 00:49

    Python requires an __init__.py file in each directory that is a module or part of the project, in pycharm you can add extra paths via preferences

提交回复
热议问题