404 and 500
This commit is contained in:
parent
c3b6e8cb5b
commit
c002b2da8e
5
tldtest/templates/404.html
Normal file
5
tldtest/templates/404.html
Normal file
|
@ -0,0 +1,5 @@
|
|||
{% extends "base.html" %}
|
||||
{% block title %}Error 404{% endblock %}
|
||||
{% block content %}
|
||||
<img src="https://http.cat/images/404.jpg">
|
||||
{% endblock content %}
|
5
tldtest/templates/500.html
Normal file
5
tldtest/templates/500.html
Normal file
|
@ -0,0 +1,5 @@
|
|||
{% extends "base.html" %}
|
||||
{% block title %}Error 404{% endblock %}
|
||||
{% block content %}
|
||||
<img src="https://http.cat/images/500.jpg">
|
||||
{% endblock content %}
|
|
@ -6,12 +6,9 @@ class Index(TemplateView):
|
|||
template_name = 'home.html'
|
||||
|
||||
|
||||
"""
|
||||
def handler404(request):
|
||||
return render(request, '404.html', status=404)
|
||||
|
||||
|
||||
def handler500(request):
|
||||
return render(request, '500.html', status=500)
|
||||
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue