Django manage.py doesn’t work with IPython
|Reported by:||ingo86||Owned by:||nobody|
|Component:||Core (Management commands)||Version:||1.2|
|Severity:||Keywords:||manage.py shell ipython|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
I am on MacOSX Snow Leopard and I'm using python 2.6.5 installed with macports. I'm inside a virtualenv.
I can't run python manage.py shell after installing IPython but I can run IPython standalone.
I figured out that the following line, contained into IPython is what causes the issue:
(status, result) = commands.getstatusoutput( "otool -L %s | grep libedit" % _rl.__file__ )
This happens because for a strange reason, the method getstatusoutput is not available when i launch python manage.py shell but it's available when I launch ipython. I can import the commands module in both cases. I tried looking at the sys.path during the execution of both, but there are no differences.
Change History (4)
comment:1 Changed 6 years ago by adamnelson
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
comment:3 Changed 6 years ago by adamnelson
- Resolution set to worksforme
- Status changed from new to closed