Importerror when running Django commands

I think the there two screenshots say it all:

http://dl.dropbox.com/u/2310965/Screen%20shot%202011-04-04%20at%2017.33.20.png

http://dl.dropbox.com/u/2310965/Screen%20shot%202011-04-04%20at%2017.34.15.png

When I try to run a Django command like "shell", I get the import errors like you see on screen. I guess because of the "sys.path.append('/Users/renskers/Workspace/Planbord/project')" command?

Notes:

- Changing settings_dev.py back to settings.py doens't make a difference

- It all works fine when I run the commands from the command like (manage.py shell)

Some extra explanation:

I have a Django project (called "Planbord") that uses  virtualenv. The Django project itself is located in a "project"  subfolder. I've used the top folder ("Planbord") as the project folder for  PyCharm. I've then used Planbord/bin/python as the Python interpreter,  which picked up the correct paths. I've also set Planbord/project/ as  the Django project root: it then saw the manage.py and settings.py  files.

Now, I am doing something really wrong here, or is this a bug?

0
1 comment
Avatar
Permanently deleted user

Problem seems fixed in PyCharm 1.2.1

0

Please sign in to leave a comment.