I want to add custom 404 page.
I have this code:
#404 page
@app.errorhandler(404)
def page_not_found(e):
return render_template('/404.html'), 404
But It doesn't work I still get
2017-10-10 09:24:04,983: File "/usr/local/lib/python2.7/dist-packages/flask/templating.py", line 61, in get_source 2017-10-10 09:24:04,983: raise TemplateNotFound(template)