Django shell in PyCharm 4 (EAP)
How do I start a django shell in 4.0? Is it done via "Run manage.py Task" (shell)?
If so, how do I configure the working directory or the python path for the shell? Because right now, if I start the shell, I can't import any of my modules because the path isn't right.
From the shell:
'C:\projects\portal_git_ssh' is the project directory, but the source root (where manage.py is) is at 'C:\\projects\\portal_git_ssh\portal\src'. So how do I set that for the shell?
Thanks
D.
If so, how do I configure the working directory or the python path for the shell? Because right now, if I start the shell, I can't import any of my modules because the path isn't right.
From the shell:
In[7]: sys.path Out[7]: ['C:\\Program Files (x86)\\JetBrains\\PyCharm 139.354\\helpers\\pydev', 'C:\\Python27\\lib\\site-packages\\setuptools-1.1.5-py2.7.egg', 'C:\\Python27\\lib\\site-packages\\pip-1.4.1-py2.7.egg', 'C:\\WINDOWS\\system32\\python27.zip', 'C:\\Python27\\DLLs', 'C:\\Python27\\lib', 'C:\\Python27\\lib\\plat-win', 'C:\\Python27\\lib\\lib-tk', 'C:\\Python27', 'C:\\Python27\\lib\\site-packages', 'C:\\Python27\\lib\\site-packages\\IPython\\extensions', 'C:\\projects\\django\\conf', 'C:\\projects\\portal_git_ssh', 'C:\\Program Files (x86)\\JetBrains\\PyCharm 139.354\\helpers\\pycharm', 'C:\\Program Files (x86)\\JetBrains\\PyCharm 139.354\\helpers\\pydev']
'C:\projects\portal_git_ssh' is the project directory, but the source root (where manage.py is) is at 'C:\\projects\\portal_git_ssh\portal\src'. So how do I set that for the shell?
Thanks
D.
Please sign in to leave a comment.