Found on stack overflow.
The solution which worked for me is following
import django
django.setup()
from myapp.models import MyModel
means call django.setup() before importing model from yourapp.models
WANT TO WORK AS FREELANCER
Want to work as Freelancer, check this out : https://www.topcoder.com/gigs?referralId=84qq8h