Django console not working - manage.py fails

i'm trying to use django console.

manage.py runserver    (Works)

but

manage.py shell     (Fails)

error message:

/Users/airjaw/.virtualenvs/mysite/bin/python -u /Users/airjaw/Library/Application Support/IntelliJIdea12/python/helpers/pydev/pydevconsole.py 64614 64615
PyDev console: starting.
import sys; print('Python %s on %s' % (sys.version, sys.platform))
Python 2.7.3 (v2.7.3:70274d53c1dd, Apr  9 2012, 20:52:43)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
sys.path.extend(['/Users/airjaw/dev/mysite/mysite', '/Users/airjaw/Library/Application Support/IntelliJIdea12/python/helpers/pycharm', '/Users/airjaw/Library/Application Support/IntelliJIdea12/python/helpers/pydev'])
import django_manage_shell; django_manage_shell.run("/Users/airjaw/dev/mysite/mysite")
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "/Users/airjaw/Library/Application Support/IntelliJIdea12/python/helpers/pycharm/django_manage_shell.py", line 31, in run
    run_module(manage_file, None, '__main__', True)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 170, in run_module
    mod_name, loader, code, fname = _get_module_details(mod_name)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 103, in _get_module_details
    raise ImportError("No module named %s" % mod_name)
ImportError: No module named manage

Please sign in to leave a comment.