realpython / book2-exercises

Book 2 -- Exercises for the book
168 stars 203 forks source link

Use DATABASE_PATH instead of DATABASE for sqlite connection #24

Closed ShermanMorrison closed 9 years ago

ShermanMorrison commented 9 years ago

I think the tutorial's connect_db() function should be updated to

sqlite3.connect(app.config['DATABASE_PATH'])

This way, the Flask server can be run from any base directory, rather than only working from the project directory.

mjhea0 commented 9 years ago

Good call. :+1: