deploying python code to heroku not working
<p>I have added the buildpack for python, it works.</p>

<p>But when i do a git push it doesnt work. </p>

<p>I get the below error all the time.</p>

<pre><code>(venv) D:\Projects\ecommerce\clone\cut_veggies&gt;heroku buildpacks:set heroku/python
Buildpack set. Next release on cutveggie will use heroku/python.
Run git push heroku master to create a new release using this buildpack.

(venv) D:\Projects\ecommerce\clone\cut_veggies&gt;git push heroku master
Counting objects: 308, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (305/305), done.
Writing objects: 100% (308/308), 410.14 KiB | 0 bytes/s, done.
Total 308 (delta 193), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----&gt; 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:
remote:  !     Push failed
remote: Verifying deploy...
remote:
remote: !       Push rejected to cutveggie.
remote:
To https://git.heroku.com/cutveggie.git
 ! [remote rejected] master -&gt; master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/cutveggie.git'
</code></pre>

<p>Can anyone tell what i am missing?</p>

<p>I've had this problem with my application too. Adding a <code>requirements.txt</code> file with the dependencies to the root of the project solved it. Check <a href="https://elements.heroku.com/buildpacks/heroku/heroku-buildpack-python" rel="nofollow">here</a> for more details. You can check <a href="https://github.com/heroku/python-getting-started/blob/master/requirements.txt" rel="nofollow">here</a> for an example too.</p>

python django heroku