Deploy Django to Heroku - Push rejected

95 views
Skip to first unread message

Bernardo Garcia

unread,
Mar 26, 2016, 4:11:31 PM3/26/16
to Django users

I am trying deploy my Django application to heroku and I get an error when I perform git push heroku master command


My structure directory is the following



And the content of requirements/production.txt is:

-r base.txt
gunicorn==19.4.5
dj-database-url==0.4.0


requirements/base.txt have this content:


Django==1.9.2
djangorestframework==3.3.2
Pillow==3.1.1
psycopg2==2.6.1
Markdown==2.6.5
django-filter==0.12.0
django-storages-redux==1.3
django-suit==0.2.16
django-boto==0.3.9
django-multiselectfield==0.1.3


The process that I am perform for deploy to my app to heroku is the following and the error is push rejected:


(uleague) ➜  pickapp git:(master) ✗ heroku create fuupbol --buildpack heroku/python
Creating fuupbol... done, stack is cedar-14
Setting buildpack to heroku/python... done
https://fuupbol.herokuapp.com/ | https://git.heroku.com/fuupbol.git
(uleague) ➜  pickapp git:(master) ✗ git remote -v
heroku	https://git.heroku.com/fuupbol.git (fetch)
heroku	https://git.heroku.com/fuupbol.git (push)
origin	https://bgar...@bitbucket.org/bgarcial/pickapp.git (fetch)
origin	https://bgar...@bitbucket.org/bgarcial/pickapp.git (push)
(uleague) ➜  pickapp git:(master) ✗ git push heroku master
Counting objects: 195, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (92/92), done.
Writing objects: 100% (195/195), 516.34 KiB | 0 bytes/s, done.
Total 195 (delta 93), reused 195 (delta 93)
remote: Compressing source files... done.
remote: Building source:
remote: 
remote: -----> Using set buildpack heroku/python
remote: 
remote:  !     Push rejected, failed to detect set buildpack heroku/python
remote: More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure
remote: 
remote: Verifying deploy....
remote: 
remote: !	Push rejected to fuupbol.
remote: 
To https://git.heroku.com/fuupbol.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/fuupbol.git'
(uleague) ➜  pickapp git:(master) ✗


I follow the getting started tutorial for deploy in heroku web page and in their samples, the requirements.txt and the settings.py were as a isolated files in the root project and not nested under folders as a settings/ folder or a requirements /folder

This have related for my error of push rejected ?



Reply all
Reply to author
Forward
0 new messages