M .gitignore => .gitignore +2 -0
@@ 234,3 234,5 @@ Thumbs.db
*.code-workspace
# End of https://www.toptal.com/developers/gitignore/api/flask,python,vscode
+
+config.py<
\ No newline at end of file
M fllscoring/__init__.py => fllscoring/__init__.py +2 -1
@@ 12,9 12,10 @@ def create_app():
app = Flask(__name__)
app.config.from_mapping(
- SQLALCHEMY_DATABASE_URI='postgresql://fllscoring:fllscoring@172.20.32.1/fllscoring',
+ SQLALCHEMY_DATABASE_URI='postgresql://fllscoring:fllscoring@localhost/fllscoring',
SECRET_KEY='badkey'
)
+ app.config.from_object('fllscoring.config')
# Health check
@app.route('/hello')
A fllscoring/config.example.py => fllscoring/config.example.py +2 -0
@@ 0,0 1,2 @@
+SQLALCHEMY_DATABASE_URI="postgresql://fllscoring:fllscoring@localhost/fllscoring"
+SECRET_KEY='badkey'<
\ No newline at end of file