Question as in title. How to set custom page for an error in django. I tried using just in templates new file like '403.html'
but it did not work.
I tried also this:
def handler404(request, exception, template_name="404.html"):
response = render_to_response(template_name)
response.status_code = 404
return response
but I can not import render_to_response