From 8128427a1d667f62ce4888fe2921ca12b6823deb Mon Sep 17 00:00:00 2001 From: Markku Okkonen Date: Fri, 10 Nov 2023 15:06:45 +0200 Subject: Database basics and initial workings of nick registeration --- app.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'app.py') diff --git a/app.py b/app.py index e38d434..3e99f07 100644 --- a/app.py +++ b/app.py @@ -1,8 +1,11 @@ from flask import Flask from os import getenv +from db_actions import db app = Flask(__name__, static_url_path='') app.secret_key = getenv("SECRET_KEY") +app.config["SQLALCHEMY_DATABASE_URI"] = "postgresql://postgres@localhost/postgres" +db.init_app(app) import routes import nick \ No newline at end of file -- cgit v1.2.3