In my Django project, the project structure is
When I right-click on a unit test function (for instance App1Test.test_app) inside the test_models.py file, the "run test" item in the menu says "Run 'Test src.bar.app1.test_models.App1Test.test_app'" and when I execute that I get "ImportError: No module named src".
I have to then edit the configuration (in the toolbar) and manually edit the path (i.e. remove the "src.bar" bit) and run the test for it to work.
Is there anywhere in PyCharm where I can set the path up correctly so it doesn't add the "src.bar" bit?
"bar" is my "Sources Root", so I'm surprised that it adds the directories above "bar" to the path.
Any help much appreciated!