Is "mysite" in your python path?

2015-10-17 8:26 GMT-06:00 Gergely Polonkai <[email protected]>:

> 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" <[email protected]> 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 [email protected].
>> To post to this group, send email to [email protected].
>> 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 [email protected].
> To post to this group, send email to [email protected].
> 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
> <https://groups.google.com/d/msgid/django-users/CACczBUKQcDEtTJZXYkj5ySiujmnCCsgnxHh0hQ9j_GNHVHd-0A%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
"La utopía sirve para caminar" Fernando Birri

-- 
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 [email protected].
To post to this group, send email to [email protected].
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/CAG%2B5VyNKGMqzwRTW5tLQCrjE%3DgNEShin-eZS4VLJmSmNaevY7w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to