I was going through this tutorial in order to learn how Django works:
https://docs.djangoproject.com/en/dev/intro/tutorial01/
Now, when I get to the part where you execute python manage.py shell, I enter the shell and try to run the different commands, I get this:
>>> Poll.objects.all()
Traceback (most recent call last):
File "\", line 1, in \
NameError: name 'Poll' is not defined
What am I doing wrong? I re-ran the previous steps as best I could.
Kamyar is almost right, if you received this error you probably missed the first line of the code, which is
so do that and you should be fine.