TypeError at /index.html/ ‘method’ object is not subscriptable

Type

'method' object is not subscriptable
Request Method: GET
Request URL: http://127.0.0.1:8003/index.html/
Django Version: 2.0.2
Exception Type: TypeError
Exception Value:
'method' object is not subscriptable
Exception Location: D:\pycharm2018\project\untitled\frist\views.py in index, line 46
Python Executable: D:\pycharm2018\project\untitled\venv\Scripts\python.exe
Python Version: 3.5.2
Python Path:
['D:\\pycharm2018\\project\\untitled',
 'D:\\pycharm2018\\project\\untitled',
 'D:\\pycharm2018\\project\\untitled\\venv\\Scripts\\python35.zip',
 'D:\\pycharm2018\\project\\untitled\\venv\\DLLs',
 'D:\\pycharm2018\\project\\untitled\\venv\\lib',
 'D:\\pycharm2018\\project\\untitled\\venv\\Scripts',
 'D:\\pycharm2018\\python3.5.2\\Lib',
 'D:\\pycharm2018\\python3.5.2\\DLLs',
 'D:\\pycharm2018\\project\\untitled\\venv',
 'D:\\pycharm2018\\project\\untitled\\venv\\lib\\site-packages',
 'D:\\pycharm2018\\PyCharm 2017.3.2\\helpers\\pycharm_matplotlib_backend']

Similar Posts: