Toggle navigation
Toggle navigation
This project
Loading...
Sign in
최원석
/
2021-1-database-project
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
1seok2
2021-02-24 21:57:00 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
600ba64c765439757b0897057ac2875226f772c3
600ba64c
1 parent
93623578
add 404 route
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
server.py
templates/404.html
server.py
View file @
600ba64
...
...
@@ -13,6 +13,11 @@ from flask import Flask, render_template
app
=
Flask
(
__name__
)
@app.errorhandler
(
404
)
def
page_not_found
():
return
render_template
(
'404.html'
)
@app.route
(
"/"
)
def
home
():
return
render_template
(
'index.html'
)
...
...
templates/404.html
0 → 100644
View file @
600ba64
<!DOCTYPE html>
<html>
<body>
<h1>
404 not found
</h1>
</body>
</html>
\ No newline at end of file
Please
register
or
login
to post a comment