Deploy Django 1.7 app on Heroku

I just updated my Django to 1.7c2 and tried to install it on Heroku when I got this error:

-----> Python app detected
-----> Installing dependencies with pip
       Downloading/unpacking Django==1.7c2 (from -r requirements.txt (line 1))
         Could not find a version that satisfies the requirement Django==1.7c2 (from -r requirements.txt (line 1)) (from versions: 1.5.2, 1.5.8, 1.6.1, 1.6.2, 1.6.5, 1.6, 1.6.3, 1.6.4, 1.1.3, 1.1.4, 1.2.1, 1.2.2, 1.2.3, 1.2.4, 1.2.5, 1.2.6, 1.2.7, 1.2, 1.3.1, 1.3.2, 1.3.3, 1.3.4, 1.3.5, 1.3.6, 1.3.7, 1.3, 1.4.1, 1.4.10, 1.4.11, 1.4.12, 1.4.13, 1.4.2, 1.4.3, 1.4.4, 1.4.5, 1.4.6, 1.4.7, 1.4.8, 1.4.9, 1.4, 1.5.1, 1.5.2, 1.5.3, 1.5.4, 1.5.5, 1.5.6, 1.5.7, 1.5.8, 1.5, 1.6.1, 1.6.2, 1.6.3, 1.6.4, 1.6.5, 1.6)
       Cleaning up...
       No distributions matching the version for Django==1.7c2 (from -r requirements.txt (line 1))
       Storing debug log for failure in /app/.pip/pip.log

 !     Push rejected, failed to compile Python app

      

Geroku clearly does not support Django 1.7. Now I found this tutorial where they are deploying a Django 1.7 app ... the question is, can my updated app be deployed or not? I am modernized mainly because of the built-in database migrations (to avoid Heroku + South).

Thank you in advance!

+3


source to share


2 answers


In your requirements file, instead of specifying the package name, link to the github repository directly with the version tag:



git+https://github.com/django/django.git@1.7c2

      

+2


source


This is not the case for Heroku, Django 1.7 is not official yet, so install 1.7 on whatever system you have to use:

pip install https://www.djangoproject.com/download/1.7c2/tarball/

      



This is clearly documented in the Django documentation: https://www.djangoproject.com/download/

+2


source







All Articles