Re: Import, referencing modules across packages

2007-04-06 Thread Jeremy Dunck
On 4/6/07, Jorge Gajon <[EMAIL PROTECTED]> wrote: ... > > The "from project.app1.forms import Form1" line should work just fine, > what is the error you are seeing?. Make sure that the directory above "projectpath" includes an __init__.py and that it (not projectpath, but it's parent!) is on the

Re: Import, referencing modules across packages

2007-04-06 Thread Jorge Gajon
On 4/6/07, Trey <[EMAIL PROTECTED]> wrote: > > Alright, I would like to reuse one of the forms, say Form1 inside of > the views for app2. So inside of the function I try this: > > def viewfunction(request): > from app1.forms import Form1 > > which fails pretty badly, I have also tried this: > > d

Import, referencing modules across packages

2007-04-06 Thread Trey
This is probably more of a Python question than a Django question but I am having a little trouble referencing sibling packages. My structure is like so: projectpath/ - app1/ views.py forms.py class Form1 - app2/ views.py forms.py Alright, I would like