Monday, August 31, 2020

Re: unexpected change

Found it.  Thank you.

On Monday, August 31, 2020 at 9:36:16 AM UTC-7 rbarh...@gmail.com wrote:
this says that it can't find "polls/index.html" but it is there...this was working previously.  I don't know what changed.


```
def index(request):
#return HttpResponse("I have a BIG present for you.")
latest_question_list = Question.objects.order_by('-pub_date') [:5]
#output = ','.join([q.question_text for q in latest_question_list])
template = loader.get_template('polls/index.html')
context = {'latest_question_list' : latest_question_list,

return HttpResponse("You are looking at the results of question %s."
```
this has a double folder structure so I tried stating the exact path but that didn't work either.

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/7371a692-a88c-4032-bbd7-9d6cc6b4dae0n%40googlegroups.com.

No comments:

Post a Comment