Hello everyone, I have a problem with using models between django apps. In my project I have an app called *userprofile *containing a model *UserProfile*. In another app where I have a model *Object *I want to use my *UserProfile *model to give the *Object *an owner like so:
*from mysite.userprofile.models import UserProfile* ... *class Object(models.Model):* * owner = models.ForeignKey(UserProfile)* but importing the module userprofile fails: *ImportError: No module named userprofile.models* although my project root mysite is in the python path and my IDE is able to interpret the import statement. Of course I've registered the apps in my settings.py. Any hints what the problem is or do I ignore something that is a common technique to exchange models between apps? Any help is appreciated, many thanks in advance annd best regards, svewa -- 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/6e09a837-2505-4148-aa71-0a0ff1b9c268%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.