I have a Django project on Heroku. It renders templates, but without any data(that I get from my local postgre database). How can I import data on Heroku database from my local db?
Asked
Active
Viewed 187 times
0
-
Have tried the methods mentioned in Heroku documentation? You can find it here: https://devcenter.heroku.com/articles/heroku-postgres-import-export#:~:text=Import%20to%20Heroku%20Postgres – Vishal A. Dec 12 '21 at 13:14
-
You can follow this answer as well: https://stackoverflow.com/a/20511058 – Vishal A. Dec 12 '21 at 13:15
-
`heroku pg:psql --app myappname < updates.sql` doesn't work – Стопчак Олег Dec 12 '21 at 13:18
-
Try this: `heroku pg:psql DATABASE_URL` – Vishal A. Dec 12 '21 at 13:20
-
you mean heroku pg:psql --app myappname > heroku pg:psql DATABASE_URL ? – Стопчак Олег Dec 12 '21 at 13:22
-
Yes, instead of `--app myappname` use `DATABASE_URL` – Vishal A. Dec 12 '21 at 13:23
-
The local psql command could not be located. For help installing psql – Стопчак Олег Dec 12 '21 at 13:24
-
Make sure that `psql` path is listed in your environment – Vishal A. Dec 12 '21 at 13:25
-
Let us [continue this discussion in chat](https://chat.stackoverflow.com/rooms/240073/discussion-between---and-vishal-a). – Стопчак Олег Dec 12 '21 at 13:26
-
You can try using WSL to get rid of the EPIPE error that you are getting in Windows. – Vishal A. Dec 13 '21 at 09:39