Saturday, May 26, 2018

Error while doing django tutorial part 2

Hello User,

I am following django tutorial at 

After modifying polls/models.py  and when running python3.6 manage.py shell again


I am getting the following error at the following 

>>> q = Question.objects.get(pk=1)    # Display any choices from the related object set -- none so far.  >>> q.choice_set.all()  <QuerySet []>

Error screenshot




Please help me to resolve the issue at earliest

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/bcd59c61-fdc6-41bd-b1cc-351603a5309f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment