The manage.py actions don't take into account project's manage.py

I have made some changes to my manage.py, namely, adding a different directory

to the path. The Ctrl+Alt+R shortcut/popup doesn't take these changes into account. Seems it tries to load the

pydevconsole.py and not my manage.py. Is this correct? How to account for the changes to my manage.py?? Shall I file a bug report?

3 comments

Hi Christian,

some changes have been made regarding manage.py shell task in PyCharm 1.2.1 RC.

Now it should take into account your manage.py.

0

Hi Dimitry,

I just downloaded the 105.45 build.

When I try to run the 'shell' command from the ctrl+alt+R window, I see that it does something differently than the previous build in that it tries to import the settings from my own manage.py, but the process then ends premature, ie, before I can even type anything into the shell. Here's the complete output. Any idea what the 'connection refused' error is about? I'm runnint Ubuntu 10.10

/home/ceposta/dev/python-sandbox/tidbits-env/bin/python -u /home/ceposta/dev/pycharm-105.45/helpers/pydev/console/pydevconsole.py 44789 42566
import sys; print('Python %s on %s' % (sys.version, sys.platform))
sys.path.extend(['/home/ceposta/dev/pycharm-105.45/helpers', '/home/ceposta/PycharmProjects/swtidbits', '/home/ceposta/PycharmProjects/swtidbits/apps'])
from pycharm import django_manage_shell
django_manage_shell.run()
Python 2.6.6 (r266:84292, Sep 15 2010, 16:22:56)
[GCC 4.4.5] on linux2

Process finished with exit code 1
Connection refused

0

After taking a look at the pydevconsole.py, and adding my own debugging statements and turning on the logging to the SimpleXMLRPCServer object, I see that some connections are being made (just not sure from where). See the modified output when logging is turned on. Im guessing the code on the pycharm side is trying to connect to the server (which is running) but with wrong URI? Please let me know what you find. Thanks!

/home/ceposta/dev/python-sandbox/tidbits-env/bin/python -u /home/ceposta/dev/pycharm-105.45/helpers/pydev/console/pydevconsole.py 60462 53391
import sys; print('Python %s on %s' % (sys.version, sys.platform))
sys.path.extend(['/home/ceposta/dev/pycharm-105.45/helpers', '/home/ceposta/PycharmProjects/swtidbits', '/home/ceposta/PycharmProjects/swtidbits/apps'])
from pycharm import django_manage_shell
django_manage_shell.run()
localhost.localdomain - - [05/Apr/2011 07:28:20] "POST /RPC2 HTTP/1.0" 200 -
localhost.localdomain - - [05/Apr/2011 07:28:20] "POST /RPC2 HTTP/1.0" 200 -
localhost.localdomain - - [05/Apr/2011 07:28:20] "POST /RPC2 HTTP/1.0" 200 -
localhost.localdomain - - [05/Apr/2011 07:28:21] "POST /RPC2 HTTP/1.0" 200 -

Process finished with exit code 1
Connection refused

0

Please sign in to leave a comment.