On 7/13/07, leanmeandonothingmachine <[EMAIL PROTECTED]> wrote:
>
> Is it possible for two apps to import from each others models? Lets
> say I have two apps, articles and photos:
>
...
> this will return errors importing errors, but if you take out either
> of the relations then it imports fine. Is there any way to do
> something like this, or for this to work does everything have to be in
> the same app?

It sounds like in this case, the answer is 'put them in the same app'.
Circular import references can't be resolved, and Django doesn't
provide a workaround.

This is by design - if you have 2 models that are that dependent on
each other, then they don't really belong in different apps.

Yours,
Russ Magee %-)

--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to