On Wed, May 28, 2014 at 11:01 PM, Inderpreet Singh <
indr...@gmail.com> wrote:
> This is directory structure of my django site
> ---- LibreHatti
> |----- src
> |----- useraccounts
> |----- librehatti
> |------- catalog
> |------- reports
>
> Now what we need is to reference a model from useraccounts in
> librehatti.catalog as a foreign key and I am unable to do that.
You may do it like this models of librehatti.
from useraccount import model.modelname
If you want all useraccounts model in librehatti, then do like,
from useraccounts.models import *
> I tried by adding 'appname.modelname' in foreign key field but it actually
> refrences librehatti.useraccounts.address, which is not what I want.
>
> Any help would be appreciated.
--
Satinderpal Singh
http://satindergoraya91.blogspot.in/