1👍
✅
Try changing url(r'^/mypage.html', 'httpi.views.index'),
to url(r'^mypage.html/$', 'httpi.views.index'),
.
The regex looks like it has an additional starting slash and I would guess that’s what’s throwing it off. The error message says it does not recognize the url you typed in and helpfully points out that you could probably get a valid response at one of the other specified urls. Alternatively, according to the routing you showed here, if you typed in no page beyond your base server url (likely http://localhost:8000/
), it would take you to the same view as the one specified at mypage.html.
Source:stackexchange.com