国内领先的Python应用管理系统
notfound_404() 404错误信息输出,支持自定义404错误信息,自定义文件路径:static/404/index.html。
以下是 notfound_404() 的语法:
notfound_404()
无参数。
返回html的字符串。
以下展示了使用 notfound_404() 的实例:
from kyger.utility import notfound_404 return notfound_404()
以上实例运行后输出的结果为:
不使用模板:
使用模板: