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

后端 未结 3 1991
既然无缘
既然无缘 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:41

    I had an issue with PyCharm not finding the templates folder for an existing Django project. So I created a test project and saw that the template folder setting is only added when setting up the project (it should be in project-root/.idea/project-name.iml)

    Copying the same setting and changing the folder to the correct one fixed the issue for me.

提交回复
热议问题