0

Wrong path with new release

Hey Guys,

I really don't know what's going on with the latest release of PyCharm. I come back to my Django project after working on it the last time in September, and now the path-setting to my django project (which I had to set up again) is screwed up.

Well, okay my directory-structure is like this, (and always has been):

  • p4rsrv
    • src
      • manage.py
      • ...
      • p4rsrv
        • settings.py

So, I set up my Django settings like you see in the image. The settings immediately acknowledge that there is a manage.py, and everything should be fine. Except that nothing works really.

When I want to start the server I get (just the beginning and end of the output):
Traceback (most recent call last):
  File "/Applications/PyCharm.app/helpers/pycharm/django_manage.py", line 21, in <module>
...
   raise ImportError("Could not import settings '%s' (Is it on sys.path?): %s" % (self.SETTINGS_MODULE, e))
ImportError: Could not import settings 'src.p4rsrv.settings' (Is it on sys.path?): No module named src.p4rsrv.settings
prettyPrint();
So, evidently the wrong manage.py is executed. This drives me crazy, I changed the Django settings a hundred times and do not know what's the problem here. Please help me.
On a side note: It really annoys me that I have to go through all this setup stuff again because of a new release of PyCharm.
pycharm.png

4 comments

Please sign in to leave a comment.