Tutorial Part 2 can not pass

I do everything along Django documentation Tutorial: Part 1: Requests and responses | Part 2: Models and the admin site, and after I type “python manage.py shell” ,I type Question.objects.all()

I get an error like:

Question.objects.all()
Traceback (most recent call last):
File “”, line 1, in
NameError: name ‘Question’ is not defined

How do I resolve the above problem

Welcome @fanjinwei10 !

What versions of Python and Django are you using?

If you are not using Django 5.2 (or newer), then you need to make sure you’re using the correct version of the tutorial.