html – Django – Attribute Error: The object 'tuple & # 39; does not have an attribute "get & # 39;

I'm working on a Django project and I get the following error:

Attribute error The object & # 39; tuple & # 39; does not have an attribute "get & # 39;

I've checked the code twice and I can not find the error, nor do I find any reference to the exception that is thrown.

The relevant bits of the code are:

views.py

since django.shortcuts import render

since import django.http HttpResponse
from .models import GuestBookItem


# Create your views here.

def worldguestbookView (request):
allguestbookitems = GuestBookItem.objects.all ()
return render (request, 'worldguestbook / worldguestbook.html'), ({all_items: allguestbookitems})

def loginView (request):
returns the rendering (request, worldguestbook  login.html & # 39;)

That's part of the relevance html file I wish to return




    {% for guestbookitem in all_items%}
  • {{}} Guestbookitem.content
  • {% endfor%}

urls.py

from django.contrib import admin
since the import path django.urls
from worldguestbook.views import worldguestbookView
from worldguestbook.views import loginView

urlpatterns = [
    path('admin/', admin.site.urls),
    path('worldguestbook/', worldguestbookView),
    path('login/', loginView),
]

More about the nature of the error (cmd)

if response.get (X-Frame-Options) is not None:

AttributeError: The object "tuple" does not have an attribute "get & # 39;
[28/Apr/2019 22:05:43] "GET / worldguestbook / HTTP / 1.1" 500 58964

Error message on the browser

        AttributeError on / worldguestbook /
The object & # 39; tuple & # 39; does not have an attribute "get & # 39;
Application method:
GET
URL of the request:
http://127.0.0.1:8000/worldguestbook/
Django version:
2.2
Type of exception:
AttributeError
Exceptional value:
The object & # 39; tuple & # 39; does not have an attribute "get & # 39;

response = get_response (request)