On Mon, Jan 19, 2009 at 1:55 AM, joti chand <[email protected]> wrote: > > Python 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit (Intel)] > on > win32 > Type "help", "copyright", "credits" or "license" for more information. >>>> from mysite.polls.models import Poll, Choice > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > ImportError: No module named mysite.polls.models >>>>
The error tells you exactly whats wrong. It could not find mysite.polls.models. There could be several reasons for this 1) mysite is not on the python path. To test try import mysite 2) there is no __init__.py in the polls directory. If 1 passes then try import mysite.polls 3) there is no models.py or models package (in simple terms a package is a directory with an __init__.py file). If both 1 & 2 pass then try import mysite.polls.models --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

