Does anybody have directions for getting Eclipse (Galileo), PyDev, and Virtualenv working together? I'm specifically trying to run Pinax but any instructions are fine.
I thought I had it (and even blogged everything but the final step - interactive debugging) and still there is no solution. I'm specifically on OS X but any answer should be sufficient. This is the best resource I've found so far:
http://blog.vlku.com/index.php/2009/06/10/djangoeclipse-with-code-complete-screencast/
Note: Before installing a package, look for the name of your virtual environment within parentheses just before your command prompt. In the example above, the name of the environment is venv . If the name shows up, then you know that your virtual environment is active, and you can install your external dependencies.
On the Web tab, use the "Reload" button to restart your website code using the new virtualenvs -- don't forget to do this for all of your websites if you have several. You will also need to restart any always-on tasks that use them -- just disable them, then enable them again.
You can exit from the virtualenv using exit command, or by pressing Ctrl+d.
I'd disagree with having to go through all the hassle of creating and maintaining a separate workspace for every virtual environment.
All you need to do is set up a separate interpreter per virtualenv and make sure the project is using it.
Along with your standard interpreters such as Python 2.5, Python 2.6, Python 3.1 you'll also add some more along the lines My Django Website, My Cool Project, My Other Cool Project--where each interpreter will have all the PYTHONPATH
entries as it's virtualenv would provide.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With