Re: [Pydev-users] Setting up Eclipse pydev django development environment
Brought to you by:
fabioz
From: Fabio Z. <fa...@gm...> - 2016-05-09 10:51:06
|
Hi Gary, There are some ways you can setup things in your use case... So, first, I'll explain a bit on the concepts related to then provide the possible solutions: Workspaces: Eclipse itself provides the concept of workspaces, so, each workspace is completely independent from another (i.e.: projects/configurations from one workspace are usually not visible to another workspace). Python Interpreter: PyDev can have multiple interpreters configured. You can think of each interpreter as a virtualenv, where the configuration of one is independent of the other (if you use virtualenvs, you should usually configure an interpreter for each virtualenv). Project: This is the place where your own source code should reside. Each folder marked as a source folder will be set as an entry in the PYTHONPATH (see http://www.pydev.org/manual_101_project_conf2.html). As you said that you don't want things to be tied to system changes, you should download a python install from python.org and keep it independent from the computer installation (I must say I usually use miniconda to create multiple python installations that are independent from the system... you can see more at: http://conda.pydata.org/docs/). As to how to map things internally, you can: 1. create a new workspace for each python/virtualenv/conda env you have installed (and then all the projects/interpreters will be separate -- and when launching Eclipse/PyDev, you should select with which one you want to work -- if you want to work with multiple at the same time you have to launch multiple instances... if you go that route, in preferences > general > workspace you can set a workspace name to be shown in the title to help you know which one you're working with). 2. Create a single workspace, configuring the multiple interpreters you have in preferences > PyDev > Interpreters > Python interpreter and then, for each project you have, go to the project properties (alt+enter with project selected) > PyDev - Interpreter/Grammar and select which interpreter that project should use. To know how to deal with existing code, there's an entry in the FAQ related to it: http://www.pydev.org/faq.html#PyDevFAQ-HowdoIimportexistingprojects%2FsourcesintoPyDev%3F Cheers, Fabio On Sat, May 7, 2016 at 7:12 PM, Gary Roach <gar...@ve...> wrote: > Hi > > I need assistance in setting up my development environment an have > gotten no response from the Eclipselink-users-request list. I hope that > someone on this list can be of assistance. > > I am running Debian stretch OS (Ubuntu is Debian for all practical > purposes) with an Xwindows KDE desktop. I have a couple of projects that > require both Python 2.7 and others that requre 3.x, I will be using > Django 1.7, 1.8 and 1.9 as needed. Each project must be completely > separate from the other pojects and must not use global libraries. In > short each project must be atomic. All projects use a common postgresql > database or the Django default and may have to share an Apache server. I > should be able to delete a project with out effecting the others. > Updates to software by the Debian apt-get method should not effect the > projects. It would be nice if I could port older projects over to the > new setup. > > I have been using another IDE but the IDE suffers from lack of > development. With that one I used vertualenv or Python3-venv to set up > virtual environments for each. I have attempted to set up a similar > thing with Eclipse and have had all kinds of conflicts. The bottom line > is that I have no idea what I am doing. I need a road map, preferably > not requiring a lot of extra code, to set things up. > > All help will be sincerely appreciated. > > Gary R. > > > ------------------------------------------------------------------------------ > Find and fix application performance issues faster with Applications > Manager > Applications Manager provides deep performance insights into multiple > tiers of > your business applications. It resolves application problems quickly and > reduces your MTTR. Get your free trial! > https://ad.doubleclick.net/ddm/clk/302982198;130105516;z > _______________________________________________ > Pydev-users mailing list > Pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-users > |