On Oct 9, 1:01 pm, Christian Wittwer <wittwe...@gmail.com> wrote:
> > from shcbelpa.season.models import Game
> > This is the line of code that generates the error right?
> > Is myapp = shcbelpa ?
>
> Yes, exactly. I forgot to replace..
> Any idea why the import doesn't work?

Most likely you have a circular dependency - module1 depends on
module2, but module2 depends on module1. Python can't resolve this, so
it says it can't import one of them.

If the only reason you are importing the models is so you can set up
foreign key references, you can do this via strings:
    goal_scorer = models.ForeignKey('myapp.Player')

--
DR.
--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to