Read DB URL from config.

This commit is contained in:
Edward Betts 2023-09-25 16:50:54 +01:00
parent 662fdcaa2b
commit 6e50f9ad74

View file

@ -1,12 +1,12 @@
#!/usr/bin/python3
from main import app
import sys
from confarchive import database, model, wikidata
DB_URL = "postgresql:///confarchive"
database.init_db(DB_URL)
app.config.from_object("config.default")
database.init_app(app)
def add_country(name: str) -> None: