[Django]-Is it possible to include a custom 404 view for a Django app without changing anything at the project level?

0👍

Instead of finishing your view with:

return render_to_response(...)

Get the response object and check its status:

out = render_to_response(...)

if out.status_code==404:
    # redirect to your 404 page
else:
    return out

Leave a comment