0
My file views.py:
def handler404(request):
return render(request, '404.html', status=404)
def handler500(request):
return render(request, '500.html', status=500)
My file urls.py:
handler404 = general_views.handler404
handler500 = general_views.handler500
urlpatterns = [
(...)
]
When I try to access in the browser some URL that does not exist in my urlpatterns of the archive urls.py, always render the 500 error screen instead of rendering the 404 error screen.