Pretty simple to do, just need to define handler404 and handler403 in the root url.py, and have templates for them. Then HttpResponseNotFound and HttpResponseForbidden will direct to our pages.
Then we can have more sensible handling in all the #TODOs in dashboard views where we currently just redirect to the dashboard if the request cannot be served because it's invalid/don't have permission, etc.
Pretty simple to do, just need to define
handler404
andhandler403
in the rooturl.py
, and have templates for them. ThenHttpResponseNotFound
andHttpResponseForbidden
will direct to our pages.Then we can have more sensible handling in all the #TODOs in dashboard views where we currently just redirect to the dashboard if the request cannot be served because it's invalid/don't have permission, etc.