use DB_URL from shared

This commit is contained in:
Damien De Paoli
2021-02-27 10:57:27 +11:00
parent f7d78c2257
commit a82226b082

View File

@@ -6,7 +6,7 @@ from flask_bootstrap import Bootstrap
from wtforms import SubmitField, StringField, HiddenField, SelectField, IntegerField, TextAreaField, validators
from flask_wtf import FlaskForm
from status import st, Status
from shared import CreateSelect
from shared import CreateSelect, DB_URL
import re
import socket
@@ -17,9 +17,6 @@ print( "Running on: {}".format( hostname) )
app = Flask(__name__)
### what is this value? I gather I should change it?
# connection string: pguseraccount, pgpasswd, mara as the host, db port is 55432, dbname
DB_URL = 'postgresql+psycopg2://pa:for_now_pa@mara.ddp.net:55432/pa'
app.config['SQLALCHEMY_DATABASE_URI'] = DB_URL
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
app.config.from_mapping( SECRET_KEY=b'\xd6\x04\xbdj\xfe\xed$c\x1e@\xad\x0f\x13,@G')