使用 JavaScript能使本网站更好的工作。
首页
帮助
登录
christian
/
SaS
关注
1
点赞
0
派生
0
代码
工单
0
合并请求
0
版本发布
0
百科
动态
浏览代码
improve error page
master
erichhasl
8 年前
父节点
da62902950
当前提交
830c0d5ed6
共有
3 个文件被更改
,包括
10 次插入
和
1 次删除
分列视图
Diff 选项
显示统计
下载 Patch 文件
下载 Diff 文件
+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 %}
撰写
预览
正在加载...
取消
保存