I've opened my Django project in PyCharm, as I want to use a proper IDE instead of a text editor to better manage the project.
When I run Find Usages on a function in /projectroot/app/views.py
it says "No usages found in Project Files," but when I run CMD + SHIFT + F it finds 34 matches in 13 files.
As suggested in this answer, I
- marked
/projectroot/
directory as Sources Root - did File > Invalidate Caches / Restart...
- in Find Options... I also tried to searching in All Places
If I run Find Usages on some other functions in /projectroot/app/helpers.py
it seems to work.
Any ideas what else I could try?