plberg / cs373-idb

Project 3 (IDB) for CS 373: Software Engineering
0 stars 1 forks source link

Make app.py get configuration from os environment #76

Closed phtimmins closed 9 years ago

phtimmins commented 9 years ago

Scripts that wish to use a different database need to do the following: -os.environ['APP_DB_URL'] = 'some_db_url' -from app import app app must be imported after setting the environment variable so that is has access to this value during configuration. tests.py manually sets this variable, run.py & initialize_db.py use a default specified in app.py