Unresolved reference '<app_name>" on import statements

I'm getting an "Unresolved reference" error from PyCharm for apps within my project.  Python level libraries and Django imports don't cause this error.

I can run the project, tests don't fail - no troubles other than I can't use the auto-complete to see which methods are available within the app that I'm trying to import.

I've tried to invalidate the cache and restart, which has worked for me in the past.  Sadly, that is not working now.

Any suggestions?
Comment actions Permalink
What is your project structure? Most likely you need to mark the parent directory of "common" as a source root in Settings | Project Structure.
Comment actions Permalink
My project structure points to the project level directory

– apps/
– __init__.py
– manage.py
– settings/
– templates/
– tests.py
– urls.py

Any other suggestions?
Comment actions Permalink
I'm seeing similar symptoms trying to import PyQt4.QtCore and PyQt4.QtGui.  I've tried adding "D:\Development\Python33\lib\site-packages" to my project structure but I still get 'Unused import' on the imports and Unresolved reference on all PyQt4 object references.  The code runs fine, it just seems to be the inspector complaining

Please sign in to leave a comment.