Tôi đã chạy heroku push master
, và nhận điều này:tay loại bỏ Python gói trên 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
Làm thế nào tôi có thể loại bỏ các gói Django trước đó?
UPDATE: requirements.txt của tôi:
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
Các văn bản trong cố định cảnh báo trên đậm.
UPDATE 2: Kể từ Django 1.5 đã chính thức phát hành, tôi chỉ sử dụng đóng băng 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 được chỉ định trong 'requirements.txt' của bạn như thế nào? Bạn đang nói nó sử dụng một phiên bản cụ thể? – culix
Vui lòng xem phần cập nhật ở trên. – blaze
@metroxylon Kiểm tra những gì xảy ra với dyno của bạn khi bạn đẩy các thay đổi 'nhật ký heroku -t'. Cố gắng xóa 'Django == 1.5' từ yêu cầu, cam kết, đẩy vào heroku, sau đó thêm và cam kết với django. – nk9