def favicon_view(request):
"""
http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/assets.html#registering-a-view-callable-to-serve-a-static-asset
"""
icon = resource_filename('kotori.frontend', 'static/favicon.ico')
if os.path.isfile(icon):
return FileResponse(icon, request=request)
else:
return HTTPNotFound()
评论列表
文章目录