B
B
Bogdan Valeev2020-09-17 20:59:09
Django
Bogdan Valeev, 2020-09-17 20:59:09

AttributeError at /polls/ 'tuple' object has no attribute 'get'?

AttributeError at /polls/
'tuple' object has no attribute 'get'
Got this error.
Help me please.
Here is the code:
from django.shortcuts import render

def index(request):
return(request, 'polls/list.html')

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dr. Bacon, 2020-09-17
@bacon

Looking for what's wrongreturn(request, 'polls/list.html')

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question