您好,我已使用命令导出到virtualenv数据库中
export DATABASE_URL="postgresql://localhost/dbname"但是在跑完之后
python manage.py init和
python manage.py db migrate结果是:
INFO [alembic.runtime.migration] Context impl SQLiteImpl.之前已经创建了PostreSQL数据库,并且已经在config.py文件中设置了SQLAlchemy URI。在迁移过程中,我使用以下命令在另一个终端窗口( venv)中打开了psql db
psql然后
\c dbname如何连接到PSQL数据库?
https://stackoverflow.com/questions/41368317
复制相似问题