How does it fail, what is the error message? My first guess is that you
should omit "mysite" from your import line, but without the exact message
it's hard to tell.

Best,
Gergely
On 17 Oct 2015 15:52, "svewa" <sven.wan...@gmail.com> wrote:

> Hello everyone,
>
> I have a question about the model interaction between different django
> apps. In my project I have an app called *userprofile* containing my
> *UserProfile* model. In another app I have an *Object* model, which of
> course should have an owner. My idea is to give the *Object* class a
> field:
>
> *owner = models.ForeignKey(Userprofile)*
>
> but the import:
>
> *from mysite.userprofile.models import UserProfile*
>
> *fails*
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/15ac9e1c-20a5-4a8c-a68b-6c05eefb6d78%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/15ac9e1c-20a5-4a8c-a68b-6c05eefb6d78%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CACczBUKQcDEtTJZXYkj5ySiujmnCCsgnxHh0hQ9j_GNHVHd-0A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to