Section Menu:  

404页面模板函数:notfound_404()

  • 发布时间: 2019-08-28 00:00
  •    阅读: 1909   

描述

notfound_404() 404错误信息输出,支持自定义404错误信息,自定义文件路径:static/404/index.html。


 
语法

以下是 notfound_404() 的语法:

notfound_404()

参数

无参数。


返回值

返回html的字符串。


实例

以下展示了使用 notfound_404() 的实例:

from kyger.utility import notfound_404
return notfound_404()

以上实例运行后输出的结果为:

不使用模板:

20191225093907412.png


使用模板:

20191225093919256.png


适应版本

v1.0.1