Vikrant Agrahari
Vikrant Agrahari

Reputation: 163

how to deploy django app with python 3.8.1 to heroku?

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?

Upvotes: 1

Views: 158

Answers (1)

bertinhogago
bertinhogago

Reputation: 349

Put

psycopg2-binary

in your requirements.txt

Upvotes: 2

Related Questions