Ask coding questions

← Back to all posts
Create 404 page Flask?
h
p1ckl3

Can you create a 404 page in flask?

Answered by IMayBeMe [earned 5 cycles]
View Answer
Voters
p1ckl3
Comments
hotnewtop
IMayBeMe

Use flask's inbuilt error handler like this:

In this example, I used 404.html but you can use any HTML file.

p1ckl3

Thanks @IMayBeMe!!