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


our projects structured:

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

if open /project-name instead of /django-project-name pycharm underlines imports saying can't find , tries reference imports src.django-project-name.app_name.models.thing can't found when run django.

how can work same when mount /djang-project-name gets these things right?

i fixed going file -> preferences -> project structure selecting /django-project-name in tree , clicking sources add it.


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -