flask + pip thing

This commit is contained in:
2025-11-27 16:13:12 -08:00
parent 50b114b33e
commit 96994223df
3 changed files with 23 additions and 2 deletions

14
app.py
View File

@@ -1,7 +1,19 @@
from flask import Flask
import psycopg2 as sql
HOST, PORT = "0.0.0.0", 8000
app = Flask(__name__)
sql.connect(
dbname="database",
user="user",
password="password",
host="localhost"
)
)
@app.route("/")
def index():
return "Hello World"
if __name__=="__main__":
app.run(host=HOST, port=PORT)