Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

275
Views
Getting error while deploying Django app in the Heroku

I have a Django project and I was trying for the first time to deploy in the Heroku cloud. The project structure is as following,

# Project structure:

.\Project folder\ -
                |
                |- .\env\ (Virtual enviroment )
                |
                |- .\src\ -
                |          |
                |          |- .\main\ -
                |          |           |
                |          |           |- admin.py  (Output tables data in to admin dashboard)
                |          |           |- models.py (Classes os DB tables)
                |          |           |- serializers.py (Serializing of data output in API)
                |          |           |- views.py (Custome API views)
                |          |           |- ...
                |          |
                |          |- .\users_groups\ -
                |          |                   |
                |          |                   |- settings.py (Project settings)
                |          |                   |- urls.py ( file with URL's reg. ex. patterns)
                |          |                   |- wsgi.py
                |          |
                |          |- .\templates\ 
                |          |
                |          |- manage.py
                |          |- db.sqlite3
                |
                |- .\app-messages
                |
                |- ReadMe.txt 
                |
                |- requirements.txt (file with list of all dependencies for app)

My project is here and I followed this tutorial. I was inside the .\Project folder\ and at the time of pushing in the master, I get some error. I use the command to push,

git push heroku master

I get the error message,

To https://git.heroku.com/i2x-team-app.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/i2x-team-app.git'

What should I do to solve this issue?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Try this

heroku buildpacks:set heroku/python

Then push

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!