hi,
> "Doesn't work" is not very informative. Does it raise an error? Do
> nothing? What is the difference between "works" and "doesn't work" in
> this case.
>
What I mean by "doesn't work" is the in my forms.py it is giving an
error that doesn't recognize the objects I have in my models.py
jam
hi,
> I can understand why your forms.py is importing models.py, but the
> real question is: why is models.py importing forms.py?
>
I have a custom validation in some of my forms which need some of the
object in my models.py. And I don't have my model.py importing
forms.py.
james
--~--~--
On Sun, 2007-10-21 at 00:18 +, james_027 wrote:
> hi,
>
> i have made myself a module name utilities.py and shortcuts.py and
> place them in the root folder of my django app.
>
> When I use them in views.py or forms.py I just put a
>
> from app_name.shortcut import *
> from app_name.utiliti
On 10/20/07, james_027 <[EMAIL PROTECTED]> wrote:
> but when I try to use it on my models.py in my forms.py it seems that
> the from app_name.XXX.models import * doesn't work anymore.
It sounds like you have a circular import problem. models.py is
importing forms.py, which is in turn importing mo
hi,
i have made myself a module name utilities.py and shortcuts.py and
place them in the root folder of my django app.
When I use them in views.py or forms.py I just put a
from app_name.shortcut import *
from app_name.utilities import *
but when I try to use it on my models.py in my forms.py i
5 matches
Mail list logo