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
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
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
3 matches
Mail list logo