Started work on Flask application

This commit is contained in:
Yarne Coppens 2024-08-24 12:14:18 +02:00
parent aeef56e663
commit 01acc0617c
5 changed files with 12 additions and 2 deletions

3
.gitignore vendored Normal file
View file

@ -0,0 +1,3 @@
.vscode/
__pycache__/
venv/

7
app.py Normal file
View file

@ -0,0 +1,7 @@
from flask import Flask, render_template
app = Flask(__name__)
@app.route("/")
def hello_world():
return render_template('index.jinja')

View file

@ -6,8 +6,8 @@
<title>
Toddler Shop
</title>
<script src="/scripts/main.js"></script>
<link rel="stylesheet" href="style/main.css">
<script src="{{url_for('static', filename='scripts/main.js')}}"></script>
<link rel="stylesheet" href="{{url_for('static', filename='style/main.css')}}">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
</head>