Estou iniciando meus estudos em Django e Python,没有即时消息estou tentando criar um blog,mas quando tento executaraplicaçãoocorre o erro:AttributeError 'tuple'对象没有属性'get'
AttributeError at /
'tuple' object has no attribute 'get'
Request Method: GET
Request URL: http://127.0.0.1:8000/
Django Version: 2.2.2
Exception Type: AttributeError
Exception Value:
'tuple' object has no attribute 'get'
Exception Location: /home/pedro/Documents/projects/django_pratice/myvenv/lib/python3.6/site-packages/django/middleware/clickjacking.py in process_response, line 26
Python Executable: /home/pedro/Documents/projects/django_pratice/myvenv/bin/python
Python Version: 3.6.8
Python Path:
['/home/pedro/Documents/projects/django_pratice',
'/usr/lib/python36.zip',
'/usr/lib/python3.6',
'/usr/lib/python3.6/lib-dynload',
'/home/pedro/Documents/projects/django_pratice/myvenv/lib/python3.6/site-packages']
Server time: Thu, 11 Jul 2019 21:35:35 -0300
Espero ver a pagina html
Traceback: File"/home/pedro/Documents/projects/django_pratice/myvenv/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner
34.response = get_response(request)
File "/home/pedro/Documents/projects/django_pratice/myvenv/lib/python3.6/site-packages/django/utils/deprecation.py" in __call__
96.response = self.process_response(request, response)
File "/home/pedro/Documents/projects/django_pratice/myvenv/lib/python3.6/site-packages/django/middleware/clickjacking.py" in process_response
26.if response.get('X-Frame-Options') is not None:
Exception Type: AttributeError at /
Exception Value: 'tuple' object has no attribute 'get'