I'm a Django newbie, I created an app and want to deploy it using Heroku. However, when I do
git push heroku master
Counting objects: 36, done.
Delta compression using up to 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: -----> Failed to 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: ! Push failed
remote: Verifying deploy....
remote: ! Push rejected to dry-waters-63931.
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/dry-waters-63931.git'
├── household_management (django app)
You need to add a
requirements.txt file which contains all of the modules required to run your application.
You can do
pip freeze > requirements.txt to freeze all of your modules into a file. I would only recommend doing this if you're using a virtualenv because otherwise it will add ALL of your modules.
Anyways, just determine exactly what modules your application requires and create a file called
requirements.txt and put it in your application directory.
The syntax for a requirements file is as follows:
package name == version # package name == version # package name == version #
Note: It is optional to specify a certain version number.
Here is an example requirements file (taken from this tutorial):
Flask==0.11 Jinja2==2.8 gunicorn==19.6.0