Maybe you need to write package name before it like this. if project is
package "from project.myapp2.models import model2"

On Tue, Aug 23, 2011 at 1:29 PM, raj <[email protected]> wrote:

> I am editing my user model, and I want to place a foreign key to a
> class in another model, that is in a different app. How would I go
> about importing it?
>
> Tree:
> /project/myapp/model1.py
> /project/myapp2/model2.py
>
> can i simply just say:
> from myapp2 import model2
> or do I need to edit something in the settings?
> Thank you.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to [email protected].
> 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.
>
>


-- 
*О.Тэмүлэн - Програм зохиогч
*

USI (United Solutions International Inc)
Програм хангамжийн компани

Баянзүрх дүүрэг, 4 хороо, “Энхүүд” төв
Гар утас: 88826004
Утас: 70151145
Факс: 70141146
P.O.Box: 318-46
И-мэйл: [email protected], [email protected]
<[email protected]>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
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