Golden Codes - armanexplorer planet

Practical code snippets for Django, Python, Bash, Git and All!

View on GitHub

description

Source roots contain the actual source files and resources. PyCharm uses the source roots as the starting point for resolving imports

solution

  1. Right click on the directory which you want to set as root of your imports
  2. Click on Mark Directory as in the bottom of the dropdown
  3. Click on Source roots
  4. Close the Pycharm and open it again

Pycharm Docs