【发布时间】:2014-08-12 09:25:53
【问题描述】:
我刚刚将我的 Django 升级到 1.7c2 并尝试部署到 Heroku,但出现此错误:
-----> 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
Heroku 显然还不支持 Django 1.7。现在我找到了this tutorial,他们在其中部署了 Django 1.7 应用程序......我现在的问题是是否可以部署我升级后的应用程序?我升级主要是因为内置的数据库迁移(避免 Heroku+South)。
提前谢谢你!
【问题讨论】: