我想在现有的heroku Django应用程序中上传我的本地postgres数据库。我运行这个:
$ PGUSER=postgres PGPASSWORD=mypass heroku pg:push postgres://localhost/newschool DATABASE_URL
但这显示了这一点:
The local psql command could not be located. For help installing psql, see
! https://devcenter.heroku.com/articles/heroku-postgresql#local-setup
如何获取psql?我的电脑上已经安装了pgadmin和postgres。我该怎么办?在上述文档中,他们只是要求为Windows安装postgres。我已经做到了!
ps.newschool是数据库名称