AttributeError at /blog/index/
AttributeError at /blog/index/
'tuple' object has no attribute 'get'
Request Method:
GET
Request URL:
http://localhost:8000/blog/index/
Django Version:
1.10.2
Exception Type:
AttributeError
Exception Value:
'tuple' object has no attribute 'get'
Exception Location:
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/middleware/clickjacking.py in process_response, line 32
Python Executable:
/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
Python Version:
2.7.13
第一次报错:TemplateDoesNotExist at /blog/index/ 目标地址 templates 缺少 index.html 拷贝进去后报这个错误,实在是找不到哪里错了,这一节课不是就新建 templates 的 directory 创建 index.html, 添加了 hello,blog,在 blog.views 改了 render 吗?其余什么都没有动过