Cant import my own .py files "unresolved reference"
Answered
Hello,
I dont recall making any changes but suddenly my code that used to work fine now cannot import a local .py file. Shows up as "unresolved reference". Clearly both of the files are in the same directory.

Please sign in to leave a comment.
Hi,
You should mark the spiders folder as Sources Root. See https://stackoverflow.com/questions/51648724/relative-import-in-pycharm-2018-does-not-work-like-relative-import-in-python-3-6?answertab=votes#tab-top