Cannot complete Flask-Migration

后端 未结 8 2137
刺人心
刺人心 2021-02-02 13:27

I\'ve setup a local Postgres DB with SQLAlchemy and cannot commit my first entry. I keep on getting this error...

ProgrammingError: (ProgrammingError) relation          


        
8条回答
  •  一向
    一向 (楼主)
    2021-02-02 14:08

    Assuming that you have checked that the database exists using psql or pgAdmin, this error usually means exactly what it says. That can be due to either:

    • not connecting to the correct database instance (check your db url: host/port and db name)
    • not correctly configuring SQLAlchemy (see: SQLAlchemy create_all() does not create tables)

提交回复
热议问题