stavo correndo heroku push master
, e ottenuto questo:rimuovere manualmente il pacchetto Python su 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
Come posso rimuovere il precedente pacchetto di Django?
UPDATE: mio 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
Il testo in grassetto fissa l'avviso di cui sopra.
UPDATE 2: Dal Django 1.5 è stato ufficialmente rilasciato, ho solo usato freeze 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
Come viene specificato Django nel tuo 'requirements.txt'? Stai dicendo di usare una versione particolare? – culix
Si prega di consultare l'aggiornamento sopra. – blaze
@metroxylon Controlla cosa succede con il tuo banco di prova quando apporti le modifiche 'heroku logs -t'. Prova a eliminare 'Django == 1.5' da requisito, commit, push su heroku, quindi aggiungi e commit con django. – nk9