1

I've already pushed my Django files to Heroku via Git and now I'd like to configure at Heroku server the Postgres database. After that, I need to transfer my local sqlite database to Heroku Postgres.

All of this issue is because I don't have admin rights on my local PC (corporate unit) to install Postgres.

So basically:

1. Configure remotely Postegres at Heroku;
2. Migrate local database (sqlite) to Heroku (Postgres).

I don't know if there is another path to go on...

Thank you!

1 Answer 1

1

That's some crazy gymnastics you're trying to do. Getting a grasp of PostgreSQL setup is hard as it is. There are several user/table privileges you have to maintain. Sqlite3 has very simple settings in the settings.py file in Django, while Postgres requires a username, password, Host, and Port.

Also the sql you export from sqlite3, might not ingest directly into the PostgreSQL. See this. You'll have to install Postgres on your local machine, if you plan to have any sort of ok workflow as far as I can see. You can probably explore docker to create a local dev environment on your corporate PC.

Sign up to request clarification or add additional context in comments.

1 Comment

Fortunatelly, I got installed a previous PostegreSQL (10.X) via binary code. Thank you for your reply.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.