Skip to content

Commit

Permalink
#9 Rendering templates
Browse files Browse the repository at this point in the history
  • Loading branch information
kcuric committed Dec 29, 2019
1 parent 637fb06 commit 679ffac
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/app.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from flask import Flask
from flask import Flask, render_template

app = Flask(__name__)

@app.route('/')
def index():
return 'DIY System'
return render_template('index.html')

if if __name__ == '__main__':
app.run(ssl_context='adhoc')
13 changes: 13 additions & 0 deletions server/templates/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>DIY Survailence System</title>
</head>
<body>
<h1>DIY Survailence System</h1>
<p>Running the app.py</p>
</body>
</html>

0 comments on commit 679ffac

Please sign in to comment.