Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pycharm remote project with virtualenv

I have the remote server with a few virtualenv environments (django projects). How can I open, develop and debug these projects completely remote?

Shall I mount remote directory via sshfs to open a project? (I can't open project other way than as local path) I am working on debian and windows xp.

like image 655
xwild Avatar asked Oct 07 '13 06:10

xwild


People also ask

Does PyCharm use VENV or Virtualenv?

PyCharm makes it possible to use the virtualenv tool to create a project-specific isolated virtual environment. The main purpose of virtual environments is to manage settings and dependencies of a particular project regardless of other Python projects.

Can PyCharm open a remote project?

PyCharm downloads the required version of JetBrains Client and opens the remote project inside it.


1 Answers

I've found the decision and asked the support which confirmed its:

Here is the steps:

  1. copy a project to a local directory.
  2. configure: tools - deployment, to upload this local copy to remote server
  3. make deployment automatic: tools - deployment - "automatic upload"
  4. add remote interpreter: file - settings - python interpreters - "+" - "Remote.."

The remote interpreter is the virtualenv interpreter with all packages are installed.

Debug also works, we can debug completely remote project on server using local pycharm.

like image 144
xwild Avatar answered Oct 10 '22 11:10

xwild