[Eric] using eric4 to debug django project

Evren Esat Özkan sleytr at gmail.com
Sun Dec 30 20:08:28 GMT 2007


It's sym.linked to site-packages. But just for testing I moved that link   
to the project folder and it worked again.


On Sun, 30 Dec 2007 21:53:38 +0200, Jake B <otakuj462 at gmail.com> 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 <sleytr at gmail.com> 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 <otakuj462 at gmail.com> 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 < otakuj462 at gmail.com> 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 < fccoelho at gmail.com > 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 < otakuj462 at gmail.com> 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
>> > > > > Eric at riverbankcomputing.com
>> > > > > 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
>> > Eric at riverbankcomputing.com
>> > http://www.riverbankcomputing.com/mailman/listinfo/eric
>> >
>> >
>>
>>
>> --
>> Evren Esat ÖZKAN
>> esat.ozkan at asyanet.com



-- 
Evren Esat Özkan


More information about the Eric mailing list