PostgreSQL With SQLalchemy Database Is Not Found
I am using the following code to create postgresql database using sqlalchemy: engine=create_engine('postgresql+psycopg2://postgres@localhost/testData') Base.metadata.create_all(eng
Solution 1:
You need to create the database beforehand, create_all
just creates the tables. To create database: sudo -u postgres createdb testData
.
Post a Comment for "PostgreSQL With SQLalchemy Database Is Not Found"