Commit e8cda389 authored by AMAN MORESHWAR JANGDE's avatar AMAN MORESHWAR JANGDE

custom error handler removed

parent 0c9e8511
......@@ -37,5 +37,4 @@ urlpatterns = [
path('threads/<int:id>', views.show_threads),
# path('add_thread/<int:id>', views.add_message),
]
handler404 = views.handler404
handler500 = views.handler500
<<!DOCTYPE html>
<html>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
<!DOCTYPE html>
<html>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
......@@ -32,11 +32,6 @@ def destroy(request, id):
employee.delete()
return redirect("/show")
def handler404(request):
return render(request, '404.html', status=404)
def handler500(request):
return render(request, '500.html', status=500)
def default(request):
return render(request, 'base.html' ,{'pid':101})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment