DEV Community

Discussion on: Deploy Your Django + React.js app to Heroku

rmiyazaki6499 profile image
Ryuichi Miyazaki • Edited on


Great post! It was exactly what we were looking for given our tech stack.
Unfortunately I am having issues with building the project and I'm not sure what I'm doing wrong.

I get this error:
remote: -----> Build succeeded!
remote: ! Unmet dependencies don't fail yarn install but may cause runtime issues
remote: -----> App not compatible with buildpack:
remote: More info:
remote: ! Push failed
remote: Verifying deploy...
remote: ! Push rejected to r-d-test.

If anyone can give any hints to what I might be doing wrong that would be great.
I followed the directions down to the key and checked the current comment suggestions as well...

The Procfile and requirements.txt are correctly in the root of the project as well...

It looks like my react part of the project works fine but something wrong with the python buildpack...

rmiyazaki6499 profile image
Ryuichi Miyazaki • Edited on

So I discovered that we needed to update the .wsgi file which I found in the source code but clearly not a part of the tutorial. I think it would be helpful to add that section after the testing of the app if it works locally.

Sorry, so when I ran the deployment when I did this I did not realize my partner had changed it.
The original settings should work.

joeszaf profile image
Joe Szaf

Ran into the same problem.

It was fixed when I actually committed my work before pushing to master.

Specifically, I ran the following before "$ git push heroku master" :

git add .
git commit -m "initial commit"

lgerhardt45 profile image
Lukas Gerhardt

Hey Ryuichi,
I ran into the same error you were having. Can you please share what fixed the problems with the python buildpack in the file?

shakib609 profile image
Shakib Hossain Author

Sorry for the late reply. Can you share with me what modifications you had to make to the file? In my case I didn't have to modify it, that's why I did not include it in the tutorial.

Thread Thread
rmiyazaki6499 profile image
Ryuichi Miyazaki

Sorry for the late reply.
I had finished the project and then COVID happened.

I looked back and actually the default settings were correct.
My partner had changed it without telling me...