1👍
✅
I presume you mean the statements inside api_get_person_info
are not being printed.
This is because your URL doesn’t match. Your pattern expects the personName within the URL itself: ie api/getName/John/
, but you are passing the parameter in the query string, api/getName?personName=John
. You should make the pattern just r'^api/getName$'
.
The reason why you are getting a 200 is because the second pattern, for contact
, does match; you haven’t terminated the regex, so it matches everything. That pattern should be r'^$'
.
Source:stackexchange.com