~muirrum/comortas

9fa32bd7aebec407ef415f768277ab9af0df3f2c — Cara Salter 3 years ago dad074e 0.1.0
Move config into separate file
3 files changed, 6 insertions(+), 1 deletions(-)

M .gitignore
M fllscoring/__init__.py
A fllscoring/config.example.py
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