Ramiro Morales
@ramiromorales
On Aug 9, 2014 7:13 PM, "Daniel Grace" <danwgr...@gmail.com> wrote:
>
> I get an error in the shell when following the tutorial
> https://docs.djangoproject.com/en/1.6/intro/tutorial01/
>
> 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'
> >>> from polls.model import Poll, Choice
>

The name the Python module you've created/modified in a prior step and need
to import now is 'models'. Note how it's in plural while you are trying to
import 'model'.

-- 
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/CAO7PdF-Kn9zteUXaXowsjiVxBmqFC%3DFe-NZs0cNk-yc2px0H_w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to