fix_dep
This commit is contained in:
1 parent
95a63041dc
commit
018f67fcbd
1 file changed
+1
-1
@@ -72,7 +72,7 @@ class Config:
|
||||
SQLALCHEMY_DATABASE_URI = f"sqlite:///{os.path.join(basedir, 'db', 'database.db')}"
|
||||
elif DB_ENGINE == "pgsql":
|
||||
SQLALCHEMY_DATABASE_URI = (
|
||||
f"postgresql://{os.environ['DB_USER']}:{os.environ['DB_PASSWORD']}@"
|
||||
f"postgresql+psycopg2://{os.environ['DB_USER']}:{os.environ['DB_PASSWORD']}@"
|
||||
f"{os.environ['DB_HOST']}:{os.environ.get('DB_PORT', 5432)}/{os.environ['DB_NAME']}"
|
||||
)
|
||||
SQLALCHEMY_ENGINE_OPTIONS["connect_args"] = {
|
||||
|
||||
Reference in new issue
Block a user