我跑heroku push master
刪除Python包,並得到了這一點:手動在Heroku
----- Python app detected
----- No runtime.txt provided; assuming python-2.7.3.
----- Using Python runtime (python-2.7.3)
----- Installing dependencies using Pip (1.2.1)
Downloading/unpacking Django-1.5c2 from https://www.djangoproject.com/download/1.5c2/tarball (from -r
requirements.txt (line 1))
Cannot determine compression type for file /tmp/pip-rYIGHS-unpack/tarball.ksh
Running setup.py egg_info for package Django-1.5c2
Installing collected packages: Django-1.5c2
Running setup.py install for Django-1.5c2
changing mode of build/scripts-2.7/django-admin.py from 600 to 755
changing mode of /app/.heroku/python/bin/django-admin.py to 755
========
WARNING!
========
You have just installed Django over top of an existing
installation, without removing it first. Because of this,
your install may now include extraneous files from a
previous version that have since been removed from
Django. This is known to cause a variety of problems. You
should manually remove the
/app/.heroku/python/lib/python2.7/site-packages/django
directory and re-install Django.
Successfully installed Django-1.5c2
我怎樣才能刪除以前的Django的包?
UPDATE: 我requirements.txt:
https://www.djangoproject.com/download/1.5c2/tarball/**#egg=django**
South==0.7.6
argparse==1.2.1
distribute==0.6.24
dj-database-url==0.2.1
psycopg2==2.4.6
wsgiref==0.1.2
PIL==1.1.7
粗體固定上述警告的文本。
更新2: 由於Django的1.5正式發佈,我只是用PIP凍結:
Django==1.5
South==0.7.6
argparse==1.2.1
distribute==0.6.24
dj-database-url==0.2.1
psycopg2==2.4.6
wsgiref==0.1.2
PIL==1.1.7
Django是如何在你的'requirements.txt'中指定的?你是否在告訴它使用特定版本? – culix 2013-02-25 03:27:45
請參閱上面的更新。 – blaze 2013-02-28 22:45:37
@metroxylon當您推送更改'heroku logs -t'時,檢查您的dyno會發生什麼。嘗試從需求中刪除'Django == 1.5',提交,推送到heroku,然後添加和提交Django。 – nk9 2013-03-01 07:27:49