1👍
✅
You wanted to get them from GET
method, but instead you gave a dictionary, so I guess you sent it via POST
. Instead of posting dictionary you should go with url:
http://127.0.0.1:8000/searchComics/?name=3-D+Man&comic=12
And you had probably a typo. You had plural "comics" in dictionary and you seek for "comic" singular.
And if you want to have data with POST
method, just change def get(...)
to def post(...)
.
Source:stackexchange.com