1

I am trying to deploy django app to heroku. I am getting error when I install django-heroku. It's getting failed. The error is

pg_config is required to build psycopg2 from source

I tried to install psycopg2 too.It is also getting failed. I am using MacOS 10.15.4 and Python 3.8.1. How can I solve this error to deploy django app?

1
  • how do you deploy? Docker? CLI? Commented Apr 23, 2020 at 10:36

1 Answer 1

2

Put

psycopg2-binary

in your requirements.txt

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

2 Comments

I did. but the error is now. ` No module named 'genius.wsgi' ` and ` Reason: Worker failed to boot.`
i think genius.wsgi is refering to your app name and wsgi is a py file inside your project. go to Procfile and copy here what have you typed there

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.