Error in shell when following Django tutorial

17 views
Skip to first unread message

Daniel Grace

unread,
Aug 9, 2014, 6:41:02 PM8/9/14
to django...@googlegroups.com
I get an error in the shell when following the tutorial

C:\Users\Daniel\My Documents\Python\DjangoTest\mysite>python manage.py shell
Python 3.4.0 (v3.4.0:04f714765c13, Mar 16 2014, 19:25:23) [MSC v.1600 64 bit (AM
D64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> from polls.model import Poll, Choice
Traceback (most recent call last):
  File "<console>", line 1, in <module>
ImportError: No module named 'polls.model'

Collin Anderson

unread,
Aug 9, 2014, 8:28:33 PM8/9/14
to django...@googlegroups.com
>>> from polls.model import Poll, Choice
>>> from polls.models import Poll, Choice
Reply all
Reply to author
Forward
0 new messages