PyCharm is not recognizing paths that I want to import.
My file structure is like this:
– other folders
django lives in djangoapp. Let's say that I want to import a module from app1 into app2. Autocomplete and such only works if I do something like:
from djangoapp.app1.models import SomeModel
I want to ommit djangoapp from the import statement, so that I can write it as:
from app1.models import SomeModel
How do I go about setting up PyCharm for that?
You need to mark the djangoapp directory as a source root in Settings | Project Structure.
Dmitry Jemerov, Chief Technology Officer, JetBrains
via email (iPhone)
Thanks. That did it!
Sent from a mobile device.
Interpreter re-configuration from editor to run-time? Is this possible?
Way to get warning for 3.x deprecated features?
Build #178 (Dec/17/2014 3:47PM)