Created base for Flask application
This commit is contained in:
parent
5a9360d10a
commit
2fabfb60f0
5 changed files with 15 additions and 2 deletions
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
__pycache__/
|
||||||
|
venv/
|
||||||
11
app.py
Normal file
11
app.py
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
from flask import Flask, render_template
|
||||||
|
|
||||||
|
app = Flask(__name__)
|
||||||
|
|
||||||
|
@app.route("/")
|
||||||
|
def hello_world():
|
||||||
|
return render_template('index.html')
|
||||||
|
|
||||||
|
@app.route("/boardgame/<int:boardgame_id>")
|
||||||
|
def get_boardgame(boardgame_id):
|
||||||
|
return "<p>Hello, World!</p>"
|
||||||
|
|
@ -6,8 +6,8 @@
|
||||||
<title>
|
<title>
|
||||||
Boardgame Site
|
Boardgame Site
|
||||||
</title>
|
</title>
|
||||||
<script src="/scripts/main.js"></script>
|
<script src="{{ url_for('static', filename='main.js') }}"></script>
|
||||||
<link rel="stylesheet" href="styles/main.css">
|
<link rel="stylesheet" href="{{ url_for('static', filename='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">
|
<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>
|
</head>
|
||||||
|
|
||||||
Loading…
Reference in a new issue