On Wed, 2006-06-14 at 20:14 +0200, gabor wrote:
> opendev wrote:
> > I have exactly the same problem, my django is the latest mr head unter
> > Python 2.4(win32)
> 
> ah, sorry, i forgot to post my findings here...
> 
> basically the "problem" was that i specified the imports "relatively".
> 
> example:
> 
> 1. django-admin.py startproject myproject
> 2. manage.py startapp myapp
> 3. now create a model in myapp. let's call it MyModel
> 
> at this point, when i create a script to work with my models and import 
> the model, things can go wrong.
> 
> with this import, reverse lookups work:
> 
> from myproject.myapp.models import MyModel
> 
> 
> 
> with this import, revers lookups fail:
> 
> from myapp.models import MyModel

Yeah, sorry about that. We really need to fix this. :-(

But it's not entirely trivial from what I remember last time I dived in
there.

Malcolm



--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to