It works when django is global in /usr/lib/python2.5/site-packages... I think the problem here is that I'm not aware of a good way to make packages in the same project visible to one another. Changing the PYTHONPATH outside of eric does not seem to change this. Hopefully someone will be able to offer me some guidance on this. Please let me know. Thanks.
Jake On Dec 30, 2007 2:53 PM, Jake B <[EMAIL PROTECTED]> wrote: > Is your django package installed locally as part of the project, or > globally in someplace like /usr/lib? > Please let me know. Thanks. > > Jake > > On Dec 30, 2007 2:34 PM, Evren Esat Özkan < [EMAIL PROTECTED]> wrote: > > > Hi, > > > > I'm using eric for Django based web development for last four months but > > never used it's debugging features. I'm not using eric's shell too > > (`manage.py shell` with ipython is enough for me) > > > > But I'm just tried to run one of my projects via running manage.py with > > `runserver` argument and it succesfuly started the server then printed all > > output to the shell. > > > > On 12/30/07, Jake B <[EMAIL PROTECTED]> wrote: > > > > > > I'm getting a bit confused now, because I've added my eric workspace > > > to my PYTHONPATH, and can import all the modules in my eric workspace from > > > the python interpreter run from any directory on my system, but when run > > > from within eric, the modules still cannot import one-another. Also, the > > > eric python interpreter shell cannot import these modules, even though > > > they > > > are part of my project, and on my global PYTHONPATH. > > > Is there a best-practices way of making visible python packages that > > > are in the same directory and sharing the same project? If not, is there a > > > way to at least troubleshoot eric to determine what it is using for its > > > PYTHONPATH? > > > Please let me know. Thanks. > > > > > > Jake > > > > > > On Dec 30, 2007 11:42 AM, Jake B < [EMAIL PROTECTED]> wrote: > > > > > > > PyDev has this feature. When you make a new project, it > > > > automatically configures your PYTHONPATH for that project. It also > > > > gives you > > > > a graphical way of adding additional paths to PYTHONPATH, and > > > > configuring > > > > PYTHONPATH to reference other projects in the workspace. This makes > > > > things > > > > much easier. Perhaps I could put this in as a feature request. > > > > > > > > Jake > > > > > > > > On Dec 30, 2007 7:45 AM, Flavio Coelho < [EMAIL PROTECTED] > wrote: > > > > > > > > > Hi Jake, > > > > > > > > > > As far as I know Eric does > > > > > not adds project folders to the Python (though it would be an > > > > > interesting feature) > > > > > > > > > > What I do in my development directories, when I want to import > > > > > from a package sitting elsewhere (which I don't want to install > > > > > globally), > > > > > is to add a symlink to it to a directory where it will be visible to > > > > > scripts > > > > > wanting to import it. > > > > > > > > > > it is simple and it works for me without having to move or copy > > > > > source files. > > > > > > > > > > Flávio > > > > > > > > > > On 12/29/07, Jake B < [EMAIL PROTECTED]> wrote: > > > > > > > > > > > Hi, > > > > > > I'm trying to use eric4 to debug a django project. To do this, I > > > > > > have django checked out of svn, as well as my application files, > > > > > > and they > > > > > > are all sharing the same workspace. I have directory structure that > > > > > > looks > > > > > > like this: > > > > > > > > > > > > workspace_eric/ > > > > > > django/ > > > > > > bin/ > > > > > > ... > > > > > > __init__.py > > > > > > fbproject/ > > > > > > fbapp/ > > > > > > __init__.py > > > > > > models.py > > > > > > urls.py > > > > > > views.py > > > > > > __init.py__ > > > > > > manage.py > > > > > > settings.py > > > > > > urls.py > > > > > > > > > > > > Unfortunately, my modules in fbproject package cannot import my > > > > > > modules in django package, so when I try to start the server by > > > > > > running > > > > > > fbproject/manage.py, giving it the command line argument * > > > > > > runserver*, and the working directory > > > > > > /home/jacob/workspace_eric, it throws an error. Is eric supposed to > > > > > > configure my PYTHONPATH for me? If so, could anyone please let me > > > > > > know what > > > > > > I'm missing? > > > > > > Thanks. > > > > > > > > > > > > Jake > > > > > > > > > > > > _______________________________________________ > > > > > > Eric mailing list > > > > > > [email protected] > > > > > > http://www.riverbankcomputing.com/mailman/listinfo/eric > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > Flávio Codeço Coelho > > > > > ---------------------------------------------------------------- > > > > > "My grandfather once told me that there were two kinds of people: > > > > > those who do the work and those who take the credit. He told me to > > > > > try to be > > > > > in the first group; there was much less competition." > > > > > Indira Gandhi > > > > > ==================================== > > > > > registered Linux user # 386432 > > > > > get counted at http://counter.li.org > > > > > ---------------------------------------------------------------- > > > > > > > > > > > > > > > > > > _______________________________________________ > > > Eric mailing list > > > [email protected] > > > http://www.riverbankcomputing.com/mailman/listinfo/eric > > > > > > > > > > > > -- > > Evren Esat ÖZKAN > > [EMAIL PROTECTED] > > >
_______________________________________________ Eric mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/eric
