diff options
author | Markku Okkonen <mokkonen@local> | 2023-11-10 15:06:45 +0200 |
---|---|---|
committer | Markku Okkonen <mokkonen@local> | 2023-11-10 15:06:45 +0200 |
commit | 8128427a1d667f62ce4888fe2921ca12b6823deb (patch) | |
tree | d24c9f58e3980bc49ca45fece0cceffe9baa3b5d /app.py | |
parent | fcb6ffc64fa8cf3b57d5960fb75d10107b346e46 (diff) |
Database basics and initial workings of nick registeration
Diffstat (limited to 'app.py')
-rw-r--r-- | app.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |