i'm django newbie, created app , want deploy using heroku. however, when git push heroku master
(i follow heroku's getting started), got:
counting objects: 36, done. delta compression using 4 threads. compressing objects: 100% (33/33), done. writing objects: 100% (36/36), 19.22 kib | 0 bytes/s, done. total 36 (delta 3), reused 0 (delta 0) remote: compressing source files... done. remote: building source: remote: remote: -----> failed detect set buildpack https://codon-buildpacks.s3.amazonaws.com/buildpacks/heroku/python.tgz remote: more info: https://devcenter.heroku.com/articles/buildpacks#detection-failure remote: remote: ! push failed remote: verifying deploy.... remote: remote: ! push rejected dry-waters-63931. remote: https://git.heroku.com/dry-waters-63931.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed push refs 'https://git.heroku.com/dry-waters-63931.git'
my root directory:
├── assignment ├── household_management (django app) ├── templates | ├── db.sqlite3 | ├── manage.py
i appreciated if guys can help. i'm depressed right now...
you need add requirements.txt
file contains of modules required run application.
you can pip freeze > requirements.txt
freeze of modules file. recommend doing if you're using virtualenv because otherwise add of modules.
anyways, determine modules application requires , create file called requirements.txt
, put in application directory.
the syntax requirements file follows:
package name == version # package name == version # package name == version #
note: optional specify version number.
here example requirements file (taken this tutorial):
flask==0.11 jinja2==2.8 gunicorn==19.6.0
don't forget commit requirements.txt
Comments
Post a Comment