Skip to content Skip to sidebar Skip to footer

Setting Up Postgres With Flask On Win7

I am working on a flask app based on http://code.tutsplus.com/tutorials/intro-to-flask-signing-in-and-out--net-29982. As part of the tut I'm trying to connect to a postgres serve

Solution 1:

Seems you're connecting to a table, not a DB, correct? Why don't you change yournewdb to postgres or make a new DB? You'll still have to make your table. You can have SQLAlchemy do this for you. Here is a great answer on that: https://stackoverflow.com/a/20749534/2326132

I'd suggest making a new database for each project, even if they are all test projects. You'll run into fewer issues.

Post a Comment for "Setting Up Postgres With Flask On Win7"