Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

278
Vistas
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 Respuestas
Responde la pregunta

0

Try this

heroku buildpacks:set heroku/python

Then push

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda