Skip to content

Commit

Permalink
create flask minimal app
Browse files Browse the repository at this point in the history
  • Loading branch information
satyam-seth committed Dec 19, 2020
1 parent 040c5da commit 6e999bb
Show file tree
Hide file tree
Showing 15 changed files with 61 additions and 0 deletions.
9 changes: 9 additions & 0 deletions App/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from flask import Flask,render_template
app = Flask(__name__)

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

if __name__ == '__main__':
app.run(debug=True)
5 changes: 5 additions & 0 deletions App/static/css/all.min.css

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions App/static/css/bootstrap.css

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions App/static/js/all.min.js

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions App/static/js/bootstrap.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions App/static/js/jquery.js

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions App/static/js/popper.js

Large diffs are not rendered by default.

17 changes: 17 additions & 0 deletions App/templates/base.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="{{url_for('static',filename='css/bootstrap.css')}}" rel="stylesheet">
<link href="{{url_for('static',filename='css/all.min.css')}}" rel="stylesheet">
<title>Diabetes Prediction</title>
</head>
<body>
{% block body %} {% endblock %}
<script src="{{url_for('static',filename='js/bootstrap.js')}}"></script>
<script src="{{url_for('static',filename='js/popper.js')}}"></script>
<script src="{{url_for('static',filename='js/jquery.js')}}"></script>
<script src="{{url_for('static',filename='js/all.min.js')}}"></script>
</body>
</html>
4 changes: 4 additions & 0 deletions App/templates/home.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{% extends "base.html" %}
{% block body %}
<h1>Home Page</h1>
{% endblock body %}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 6e999bb

Please sign in to comment.