# Ready BUT not ready for Deployment of WebApp

**URL:** https://forum.codewithmosh.com/t/ready-but-not-ready-for-deployment-of-webapp/25343
**Category:** Django
**Created:** [February 28, 2024, 12:18am UTC](https://forum.codewithmosh.com/t/ready-but-not-ready-for-deployment-of-webapp/25343 "2024-02-28T00:18:23Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Napchill](https://avatars.discourse-cdn.com/v4/letter/n/7ab992/32.png) [@Napchill](https://forum.codewithmosh.com/u/Napchill)
#### Post date: [February 28, 2024, 12:18am UTC](https://forum.codewithmosh.com/t/ready-but-not-ready-for-deployment-of-webapp/25343/1 "2024-02-28T00:18:23Z")

</div>

In the Building Web Applications section, module/lecture 22- Deployment, I am getting as far as entering in the terminal: “git push heroku main:main”. I read somewhere the using “main” in place of “master” is the updated way to deploy.

The result spits out:

**pasted below**  
Enumerating objects: 181, done.  
Counting objects: 100% (181/181), done.  
Delta compression using up to 12 threads  
Compressing objects: 100% (174/174), done.  
Writing objects: 100% (181/181), 621.61 KiB | 6.28 MiB/s, done.  
Total 181 (delta 36), reused 0 (delta 0), pack-reused 0  
remote: Resolving deltas: 100% (36/36), done.  
remote: 2024/02/26 21:41:55 Rollbar error: empty token  
remote: Updated 161 paths from ff7cfc0  
remote: Compressing source files… done.  
remote: Building source:  
remote:  
remote: -----\> Building on the Heroku-22 stack  
remote: -----\> Using buildpack: heroku/python  
remote: -----\> App not compatible with buildpack: [https://buildpack-registry.s3.amazonaws.com/buildpacks/heroku/python.tgz](https://buildpack-registry.s3.amazonaws.com/buildpacks/heroku/python.tgz)  
remote: More info: [Buildpacks | Heroku Dev Center](https://devcenter.heroku.com/articles/buildpacks#detection-failure)  
remote:  
remote: ! Push failed  
remote: !

remote: ! ## Warning - The same version of this code has already been built: cc0b785792823d9e3df9460baa8a7ceea82021f3  
remote: !  
remote: ! We have detected that you have triggered a build from source code with version cc0b785792823d9e3df9460baa8a7ceea82021f3  
remote: ! at least twice. One common cause of this behavior is attempting to deploy code from a different branch.  
remote: !  
remote: ! If you are developing on a branch and deploying via git you must run:  
remote: !  
remote: ! git push heroku :main  
remote: !  
remote: ! This article goes into details on the behavior:  
remote: ! [Duplicate Build Version Detected | Heroku Dev Center](https://devcenter.heroku.com/articles/duplicate-build-version)  
remote:  
remote: Verifying deploy…  
remote:  
remote: ! Push rejected to hidden-scrubland-92739.  
remote:  
To [https://git.heroku.com/hidden-scrubland-92739.git](https://git.heroku.com/hidden-scrubland-92739.git)  
! [remote rejected] main → main (pre-receive hook declined)  
error: failed to push some refs to ‘[https://git.heroku.com/hidden-scrubland-92739.git](https://git.heroku.com/hidden-scrubland-92739.git)’  
_ **END PASTE** _\*

Not sure why App is not compatible

I have listed packages: gunicorn 21.2.0; Django 4.1; django-tastypie 0.14.6, pip 24.\*;

Using the buildpack: heroku/python

Any help would be greatly appreciated.

---

<div class="post-metadata">

### Author: ![Napchill](https://avatars.discourse-cdn.com/v4/letter/n/7ab992/32.png) [@Napchill](https://forum.codewithmosh.com/u/Napchill)
#### Post date: [February 28, 2024, 9:27pm UTC](https://forum.codewithmosh.com/t/ready-but-not-ready-for-deployment-of-webapp/25343/2 "2024-02-28T21:27:38Z")

</div>

Disregard. I figured it out, but not sure exactly how. It may have been through updating heroku in the terminal or playing with the “%git config…” commands in the terminal.

This was lead to after exploring the “Getting Started on Heroku with Python” within the Dev Center on the Heroku website.

In the end all complete on the _Building Web Applications with Django_ section

Good luck.

---

<div class="post-metadata">

### Author: ![kartikj](https://avatars.discourse-cdn.com/v4/letter/k/90ced4/32.png) [@kartikj](https://forum.codewithmosh.com/u/kartikj)
#### Post date: [March 31, 2024, 10:53am UTC](https://forum.codewithmosh.com/t/ready-but-not-ready-for-deployment-of-webapp/25343/3 "2024-03-31T10:53:00Z")

</div>

hello can u please tell me i just downloaded heroku cli first time so as per mosh i went to vs code and ran this line but its not working telling forverify billling how did u got it right\>?  
heroku create  
Creating app… !  
▸ To create an app, verify your account by adding payment information.  
▸ Verify now at [https://heroku.com/verify](https://heroku.com/verify) Learn more at  
▸ [Account Verification | Heroku Dev Center](https://devcenter.heroku.com/articles/account-verification)
