Fixed #18373 -- Improved debug messages for 404 errors

When an Http404 exception is raised from a view (as opposed to Django
trying to route the request), make the exception message contain the
full stack trace for easier debugging.

Also, make the reported URL match the one requested in resolve() call,
not the URL of the current page

https://code.djangoproject.com/ticket/18373