Skip to content

Commit

Permalink
Merge pull request thedataincubator#7 from thedataincubator/add_about
Browse files Browse the repository at this point in the history
about endpoint
  • Loading branch information
ZachGlassman authored Jan 2, 2018
2 parents 99a7e11 + f22ab1f commit 28e417f
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,9 @@
def index():
return render_template('index.html')

@app.route('/about')
def about():
return render_template('about.html')

if __name__ == '__main__':
app.run(port=33507)
30 changes: 30 additions & 0 deletions templates/about.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="Skeleton application demoing Heroku and Flask integration.">
<meta name="author" content="@gotoariel">
<!-- <link rel="icon" href="favicon.ico"> -->

<title>Wilkommen, bienvenue, and welcome to Heroku!</title>

<!-- Bootstrap core CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
</head>
<body>
<div class="container">
<div class="row">
<div class="col-lg-12 text-left">
<h2>About</h2>
<p><a href="/">Home</a></p>
</div>
</div>
</div>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<div class="col-lg-12 text-left">
<h2>Hello, World!</h2>
<ul>
<li><a href="/about">About</a></li>
<li><a target="_blank" href="https://www.heroku.com/">Heroku</a></li>
<li><a target="_blank" href="http://flask.pocoo.org/">Flask</a></li>
<li><a target="_blank" href="http://jinja.pocoo.org/docs/2.9/">Jinja2</a></li>
Expand Down

0 comments on commit 28e417f

Please sign in to comment.