python post_to_twitter.py
Traceback (most recent call last):
File "post_to_twitter.py", line 16, in
question = Question.objects.get_new_question()
File "/Users/pxg/Sites/favourite_q_django/favouriteQ/questions/models.py", line 15, in get_new_question
return questions[0]
File "/Users/pxg/Sites/favourite_q_django/env/lib/python2.7/site-packages/django/db/models/query.py", line 207, in getitem
return list(qs)[0]
IndexError: list index out of range
python post_to_twitter.py Traceback (most recent call last): File "post_to_twitter.py", line 16, in
question = Question.objects.get_new_question()
File "/Users/pxg/Sites/favourite_q_django/favouriteQ/questions/models.py", line 15, in get_new_question
return questions[0]
File "/Users/pxg/Sites/favourite_q_django/env/lib/python2.7/site-packages/django/db/models/query.py", line 207, in getitem
return list(qs)[0]
IndexError: list index out of range