Re: Importing external modules/classes

2006-04-14 Thread DavidA
Hi Cary, What I did to avoid all the PYTHONPATH stuff was to just 'install' my python library using distutils. I set up a trivial setup.py script and then I just run 'python setup.py install' for my library whenever I make changes. from distutils.core import setup setup(name='pf',

Re: Importing external modules/classes

2006-04-13 Thread arthur debert
Hi Cary. that depends if you're using magic-removal or trunk. On the m-r branch there are no "magic" modules, whatever is on your path can be imported as usual. if you're using trunk, you must import inside your models methods, or user module_constants (

Re: Importing external modules/classes

2006-04-13 Thread Joseph Kocherhans
On 4/13/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I've developed a library of code in python that I reuse across multiple > projects, and I wanted to be able to use some of these classes/modules > with Django but I've had some problems. I have defined the PYTHONPATH > env variable (in

Importing external modules/classes

2006-04-13 Thread [EMAIL PROTECTED]
Hello, I'm fairly new to Django, so apologize if this question is fairly basic. (I did search for related topics but didn't find anything that seemed to answer my exact question.) I've developed a library of code in python that I reuse across multiple projects, and I wanted to be able to use