__init__()?takes?1?positional?argument?but?2?were?given
Request Method: | GET |
---|
Request URL: | http://127.0.0.1:8000/bolg/hello_world |
---|
Django Version: | 2.0 |
---|
Exception Type: | TypeError |
---|
Exception Value: | __init__()?takes?1?positional?argument?but?2?were?given |
---|
Exception Location: | /Users/sadocument/django_project/django_introduction/bolg/views.py in hello_world, line 9 |
---|
Python Executable: | /Users/sadocument/opt/anaconda3/bin/python |
---|
Python Version: | 3.7.6 |
---|
Python Path: | ['/Users/sadocument/django_project/django_introduction',
?'/Users/sadocument/opt/anaconda3/lib/python37.zip',
?'/Users/sadocument/opt/anaconda3/lib/python3.7',
?'/Users/sadocument/opt/anaconda3/lib/python3.7/lib-dynload',
?'/Users/sadocument/opt/anaconda3/lib/python3.7/site-packages',
?'/Users/sadocument/opt/anaconda3/lib/python3.7/site-packages/aeosa'] |
---|
2021-01-07
這個(gè)文件bolg/views.py代碼貼出來(lái),報(bào)錯(cuò)提示第九行。錯(cuò)誤提示,方法接收一個(gè)參數(shù),但是你傳了兩個(gè)參數(shù)。