On Tue, 2007-08-14 at 00:26 +0000, Brisingman wrote:
> Hi,
> 
> Have 2 problems that may be related but definitely need resolution.
> 
> 1) Want to use my central library ( /home/me/bin) with Django in
> different projects.  Tried to import a module from this library in an
> app view and got an import error.

*How* are you running the code that is trying to do this? Via manage.py?
Via apache? Some other way?

> 
> 2) sys.path shows /home/me/bin with the other stuff, ie I can import
> my modules from said library into python on the command line.
> However, the IDLE path browser does not show this library ( /home/me/
> bin ).  I need to be able to browse the code in this library in IDLE.
> 
> I have PYTHONPATH set to /home/me/bin in bash.bashrc.

Depending upon how you're running the application, it might not be under
a bash process or it might be spawned via something that intentionally
doesn't inherit the whole environment, for security or other reasons.
So .bashrc might not be being executed.

Regards,
Malcolm

-- 
Monday is an awful way to spend 1/7th of your life. 
http://www.pointy-stick.com/blog/


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to