notfound_404() 404錯誤信息輸出,支持自定義404錯誤信息,自定義文件路徑:static/404/index.html。
以下是 notfound_404() 的語法:
notfound_404()
無參數(shù)。
返回html的字符串。
以下展示了使用 notfound_404() 的實(shí)例:
from kyger.utility import notfound_404 return notfound_404()
以上實(shí)例運(yùn)行后輸出的結(jié)果為:
不使用模板:
使用模板: