[英]pycharm manage.py tasks ImportError: No module named manage
When trying to execute "run manage.py Task..." in pycharm with a remote environment I'm getting the following error: 当尝试在pycharm中使用远程环境执行“run manage.py Task ...”时,我收到以下错误:
ssh://vagrant@127.0.0.1:2222/home/vagrant/.virtualenvs/telmo/bin/python3.4 -u /home/vagrant/.pycharm_helpers/pycharm/django_manage.py migrate /home/alberick/Documents/tixif-projects/telmo-api/api
bash: line 0: cd: /home/alberick/Documents/tixif-projects/telmo-api/api: No such file or directory
Traceback (most recent call last):
File "/home/vagrant/.pycharm_helpers/pycharm/django_manage.py", line 23, in <module>
run_module(manage_file, None, '__main__', True)
File "/usr/lib/python3.4/runpy.py", line 178, in run_module
mod_name, mod_spec, code = _get_module_details(mod_name)
File "/usr/lib/python3.4/runpy.py", line 112, in _get_module_details
raise ImportError("No module named %s" % mod_name)
ImportError: No module named manage
Process finished with exit code 1
I was having the same issue for "Run Django Console..." but I got it working using "No module named manage" in PyCharm . 我在“Run Django Console ...”中遇到了同样的问题,但我在PyCharm中使用“No module命名为manage”工作 。
I fixed this issue by first adding a new deployment server to pycharm. 我通过首先向pycharm添加新的部署服务器来解决此问题。
Just go into Tools / Deployment. 只需进入工具/部署。
Click the Plus sign and configure a new SFTP connection. 单击加号并配置新的SFTP连接。 Then click Mappings and configure your local path and deployment server path.
然后单击Mappings并配置本地路径和部署服务器路径。
Then add the remote interpreter to pycharm using "deployment configuration" 然后使用“部署配置”将远程解释器添加到pycharm
After this "run django console" and "run manage.py Task" started to work on remote for me. 在此之后“运行django控制台”和“运行manage.py任务”开始为我工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.