-
Notifications
You must be signed in to change notification settings - Fork 23
PyCharm and Vagrant
PyCharm is an IDE mainly for coding Python, and it comes with integrated Django-support.
Take a look at the video - this is a really great IDE.
Vagrant-support for our setup is a bit tricky if you've never done it before, hence this guide.
For the course of this tutorial C:\Users\Espen\pycharmsetup\onlineweb4
will be used as the path in which onlineweb4 was cloned to. Replace every occurence of this string with the path you cloned to.
PyCharm likes Vagrant being started from within PyCharm. Do this before proceeding:
- If you started Vagrant already:
Tools -> Vagrant -> Halt
Tools -> Vagrant -> Up
Fire up an instance of PyCharm, click the File
-menu and Open Directory...
.
Choose the folder in which you cloned onlineweb4 and click OK
.
Your PyCharm should look like this:
Press ctrl-alt-s
to bring up the Settings dialog.
Edit the Django Support
page:
Open the Project Interpreter -> Python Interpreters
page:
Add a new Remote
interpreter:
Make sure things look like this:
Press Apply
and OK
to save your settings.
Press the green plus sign and select Django server
.
Make sure the settings look like this:
This is the most fucked up step to realize at first, you have to map the paths of your Host OS to the paths of your Guest OS:
Click ...
right of Environment variables
and make sure this is correct:
Next: ...
right of Path mappings
: