This website works better with JavaScript.
Почетна
Помоћ
Пријавите Се
christian
/
SaS
Прати
1
Волим
0
Креирај огранак
0
Код
Дискусије
0
Захтеви за спајање
0
Издања
0
Вики
Activity
Преглед изворни кода
improve error page
master
erichhasl
пре 8 година
родитељ
da62902950
комит
830c0d5ed6
3 измењених фајлова
са
10 додато
и
1 уклоњено
Подељен поглед
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-1
web_dev/sas_web/sas_web/views.py
+4
-0
web_dev/sas_web/static/public/css/default.css
+4
-0
web_dev/sas_web/templates/404.html
+ 2
- 1
web_dev/sas_web/sas_web/views.py
Прегледај датотеку
@@ -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}))
+ 4
- 0
web_dev/sas_web/static/public/css/default.css
Прегледај датотеку
@@ -11,3 +11,7 @@
#content a:hover {
color: #48140a;
}
#content h1 {
color: #9F2D17;
}
+ 4
- 0
web_dev/sas_web/templates/404.html
Прегледај датотеку
@@ -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 %}
Write
Preview
Loading…
Откажи
Сачувај