Setting up Flask-SQLAlchemy


Trying to set up Flask and SQLAlchemy on Windows but I've been running into issues.

I've been using Flask-SQLAlchemy along with PostgreSQL 9.1.4 (32 bit) and the Psycopg2 package. Here are the relevant bits of code, I created a basic User model just to test that my DB is connecting, and committing.

The three bits of code would come from the file of my application, the file and my file.

When I try opening up my interactive prompt and try the code in the following link out I get a ProgrammingError exception (details in link).

What could be causing this? I followed the documentation and I'm simply confused as to what I'm doing wrong especially considering that I've also used Django with psycopg2 and PostgreSQL on Windows.

10/25/2013 7:25:37 PM

I had great help using this tutorial Flask Mega Tutorial

7/20/2012 7:25:29 AM

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow