improve error page
This commit is contained in:
@@ -3,4 +3,5 @@ from django.http import HttpResponseNotFound
|
||||
|
||||
|
||||
def error_404(request):
|
||||
return HttpResponseNotFound(render_to_string('404.html'))
|
||||
return HttpResponseNotFound(render_to_string('404.html',
|
||||
context={'url': request.path}))
|
||||
|
||||
@@ -11,3 +11,7 @@
|
||||
#content a:hover {
|
||||
color: #48140a;
|
||||
}
|
||||
|
||||
#content h1 {
|
||||
color: #9F2D17;
|
||||
}
|
||||
|
||||
@@ -2,5 +2,9 @@
|
||||
|
||||
{% block content %}
|
||||
<h1>Huch? Wo willst du denn hin?</h1>
|
||||
<p>Normalerweise kenne ich mich hier ganz gut aus, aber von <b>{{ url }}</b> habe ich noch nie
|
||||
gehört. Vielleicht meintest du ja etwas anderes?</p>
|
||||
|
||||
<p><a href="{% url "startpage:index" %}">Hier</a> geht es zurück zur Startseite.</p>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user