Skip to content

Commit

Permalink
added 404 error page
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed Aug 27, 2013
1 parent cb03b2c commit 20c7bd2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,9 @@
def home():
return render_template('main.html')

@app.errorhandler(404)
def page_not_found(e):
return render_template('404.html')

if __name__ == '__main__':
app.run(host="0.0.0.0", port=8000)
5 changes: 5 additions & 0 deletions templates/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<html>
<body style="margin: 0;">
<iframe style="height: 100%; width: 100%; border:0" src="http://m404.ytmnd.com/"></iframe>
</body>
</html>

0 comments on commit 20c7bd2

Please sign in to comment.